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.
This commit is contained in:
Niklas Hambüchen 2019-01-24 20:52:01 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 3dffcfc78b
commit 3a1e46f7ae
1 changed files with 3 additions and 2 deletions

View File

@ -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);