timesyncd: add debug logging in case we can't touch /run/systemd/timesync/synchronized

This commit is contained in:
Lennart Poettering
2022-03-18 23:54:01 +01:00
parent 1f129b7fb7
commit 1aa7ca2241
+3 -1
View File
@@ -580,7 +580,9 @@ static int manager_receive_response(sd_event_source *source, int fd, uint32_t re
(void) manager_save_time_and_rearm(m, dts.realtime);
/* If touch fails, there isn't much we can do. Maybe it'll work next time. */
(void) touch("/run/systemd/timesync/synchronized");
r = touch("/run/systemd/timesync/synchronized");
if (r < 0)
log_debug_errno(r, "Failed to touch /run/systemd/timesync/synchronized, ignoring: %m");
}
/* Save NTP response */