summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-01-21 12:03:02 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-02-05 17:35:02 +0100
commit6f9a8621d80694a574a06666db3427ff8cb6bd23 (patch)
treee3a742a6a6217fa546aa5d17ee913483cc46ee97
parent0637255d3bf41d94fb7c304f74708c2ee0ef65ef (diff)
downloadsystemd-6f9a8621d80694a574a06666db3427ff8cb6bd23.tar.gz
timesyncd: log louder when we refuse a server due to root distance
This is something people should know about, since it's caused by misconfiguration. Fixes: #13912 (cherry picked from commit ce96c9cb1a8f81ff4bbc40f5a98d003d6ffacb57) (cherry picked from commit fc053e2dfb3f094f71580a2647c029f1976445d3)
-rw-r--r--src/timesync/timesyncd-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c
index e76f1b9197..3841c8fc4e 100644
--- a/src/timesync/timesyncd-manager.c
+++ b/src/timesync/timesyncd-manager.c
@@ -517,7 +517,7 @@ static int manager_receive_response(sd_event_source *source, int fd, uint32_t re
root_distance = ntp_ts_short_to_d(&ntpmsg.root_delay) / 2 + ntp_ts_short_to_d(&ntpmsg.root_dispersion);
if (root_distance > (double) m->max_root_distance_usec / (double) USEC_PER_SEC) {
- log_debug("Server has too large root distance. Disconnecting.");
+ log_info("Server has too large root distance. Disconnecting.");
return manager_connect(m);
}