]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
timesyncd: improve log message whe getting a reply from server 22789/head
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Mar 2022 15:58:26 +0000 (16:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Mar 2022 22:54:18 +0000 (23:54 +0100)
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.

src/timesync/timesyncd-manager.c

index ba7e52f6b3baf9f087cc03ea57dc3eefda742a2f..41c18b5e86d656d797b50619d0c7b8ecd883c910 100644 (file)
@@ -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) {