]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
timesyncd: log louder when we refuse a server due to root distance
authorLennart Poettering <lennart@poettering.net>
Tue, 21 Jan 2020 11:03:02 +0000 (12:03 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 21 Jan 2020 14:20:17 +0000 (15:20 +0100)
This is something people should know about, since it's caused by
misconfiguration.

Fixes: #13912
src/timesync/timesyncd-manager.c

index da6b4104767eca24da1ce1dcb1eed37cca215138..7b71e98f566ff2667c6a1d7e7418bb278bb54f27 100644 (file)
@@ -514,7 +514,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);
         }