mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-26 08:55:18 +03:00
Updated log message when the timesync happens for the first time (#13624)
(cherry picked from commit37afb0ac78
) (cherry picked from commitf67f0e4ec4
)
This commit is contained in:
parent
14f8449622
commit
e974c0d664
@ -617,9 +617,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);
|
||||
/* "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);
|
||||
/* "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);
|
||||
sd_notifyf(false, "STATUS=Initial synchronization to time server %s (%s).", strna(pretty), m->current_server_name->string);
|
||||
}
|
||||
|
||||
r = manager_arm_timer(m, m->poll_interval_usec);
|
||||
|
Loading…
Reference in New Issue
Block a user