manager: add structured log message about clock bump
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 12 Jun 2024 09:55:14 +0000 (11:55 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 15 Jun 2024 14:54:37 +0000 (16:54 +0200)
commite0c7c9a00d529254c07659d094dd5e91730674bd
tree8ead89a276b33b897a7e39bce446b877b8c65783
parent8905490d94fe564f0f49fc13550c309374d55a59
manager: add structured log message about clock bump

Requested in https://github.com/systemd/systemd/pull/33214#discussion_r1630251308.
Also, reword error messages a bit. When /usr/lib/clock-epoch was introduced,
"build time" stopped being acurate. Just say "epoch" instead.

The same message ID is used in the manager and timesyncd. The event is
essentially equivalent for the user, and it seems reasonable that to search for
both at the same time.

The catalog entry is dropped. It provided almost no additional information above
the message. When the same message ID is now applied to messages from PID1 and
timesyncd, and the clock can be both advanced and rewound, it becomes very hard
to make the catalog entry provide something useful, because catalog entries don't
allow conditionalization.
catalog/systemd.catalog.in
catalog/systemd.pl.catalog.in
src/core/clock-warp.c
src/timesync/timesyncd.c