Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to disable systemd's “Time has been changed” message spam in journal log #5207

Closed
adrelanos opened this issue Feb 2, 2017 · 1 comment

Comments

2 participants
@adrelanos
Copy link

commented Feb 2, 2017

Submission type

  • Request for enhancement (RFE)

systemd version the issue has been seen with

232

Used distribution

debian

issue description

Due to combined use of Debian stretch, that uses systemd by default, and sdwdate (that uses Slow Clock Adjuster ( gh )), my system clock is frequently changed.

As a result journalctl -f gets endlessly spammed by.

    [...]
    Nov 07 13:46:49 host systemd[766]: Time has been changed
    Nov 07 13:46:50 host systemd[766]: Time has been changed
    Nov 07 13:46:51 host systemd[766]: Time has been changed
    [...]

It may be possible to disable this by switching from LogLevel=info to LogLevel=notice, but that is not a great solution, because then a lot other messages that are fine would be lost.

feature request

Please provide an option to drop-in a configuration snippet that allows to disable the Time has been changed messages.

Related code

https://github.com/systemd/systemd/blob/master/src/core/manager.c#L1888

        log_struct(LOG_DEBUG,
                   LOG_MESSAGE_ID(SD_MESSAGE_TIME_CHANGE),
                   LOG_MESSAGE("Time has been changed"),
                   NULL);
@poettering

This comment has been minimized.

Copy link
Member

commented Feb 2, 2017

As you the code you pasted shows this has already been downgraded to debug:

a80c157

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.