From: Lennart Poettering Date: Fri, 18 Mar 2022 15:58:26 +0000 (+0100) Subject: timesyncd: improve log message whe getting a reply from server X-Git-Tag: v251-rc1~92^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F22789%2Fhead;p=thirdparty%2Fsystemd.git timesyncd: improve log message whe getting a reply from server The message is misleading: it's not about synchronization but about successful communicaiton. And it's not about "initial", but only about first contact since we siwtched to this server. Let's hence reword the message a bit. --- diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c index ba7e52f6b3b..41c18b5e86d 100644 --- a/src/timesync/timesyncd-manager.c +++ b/src/timesync/timesyncd-manager.c @@ -611,9 +611,8 @@ static int manager_receive_response(sd_event_source *source, int fd, uint32_t re (void) server_address_pretty(m->current_server_address, &pretty); - /* "Initial", as further successful syncs will not be logged. */ - log_info("Initial synchronization to time server %s (%s).", strna(pretty), m->current_server_name->string); - (void) sd_notifyf(false, "STATUS=Initial synchronization to time server %s (%s).", strna(pretty), m->current_server_name->string); + log_info("Contacted time server %s (%s).", strna(pretty), m->current_server_name->string); + (void) sd_notifyf(false, "STATUS=Contacted time server %s (%s).", strna(pretty), m->current_server_name->string); } if (!spike && !m->synchronized) {