summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiklas Hambüchen <mail@nh2.me>2019-01-24 20:52:01 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-01-24 23:52:24 +0100
commit3a1e46f7ae8d11e44b61c1975f750bd26a2d1851 (patch)
treec41e970950a10e21016baf1a6ec7e52fc29c2b49 /src
parent3dffcfc78bc31cb70a1cb0b350ec95332ff0f2fe (diff)
downloadsystemd-3a1e46f7ae8d11e44b61c1975f750bd26a2d1851.tar.gz
timesyncd: Improve sync log message. Fixes #11548.
This makes it clear that the user should not expect more log messages each time the time is synchronised.
Diffstat (limited to 'src')
-rw-r--r--src/timesync/timesyncd-manager.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c
index b3bd7235c9..6fde4a316b 100644
--- a/src/timesync/timesyncd-manager.c
+++ b/src/timesync/timesyncd-manager.c
@@ -616,8 +616,9 @@ static int manager_receive_response(sd_event_source *source, int fd, uint32_t re
m->good = true;
server_address_pretty(m->current_server_address, &pretty);
- log_info("Synchronized to time server %s (%s).", strna(pretty), m->current_server_name->string);
- sd_notifyf(false, "STATUS=Synchronized to time server %s (%s).", strna(pretty), m->current_server_name->string);
+ /* "for the first time", as further successful syncs will not be logged. */
+ log_info("Synchronized to time server for the first time %s (%s).", strna(pretty), m->current_server_name->string);
+ sd_notifyf(false, "STATUS=Synchronized to time server for the first time %s (%s).", strna(pretty), m->current_server_name->string);
}
r = manager_arm_timer(m, m->poll_interval_usec);