]> git.ipfire.org Git - thirdparty/chrony.git/commit
conf: don't repeat error message when adding sourcedir source
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 6 Aug 2024 11:05:26 +0000 (13:05 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 7 Aug 2024 07:48:24 +0000 (09:48 +0200)
commitd4a4f89329f422a7598cd4c5361cbe919aa29a2c
treeca312092a1c8ba5b23bc408119dba94852cfee4e
parent916ed70c4a815d7dcbd99eb8ed003ad508044c98
conf: don't repeat error message when adding sourcedir source

When a source from a configured sourcedir cannot be added (e.g. it is a
duplicate of another source), log the error message only on the first
attempt adding the source, until the source is removed and added to a
sourcedir again.

This avoids spamming of the system log with error messages if the
reload sources command is called frequently (e.g. from a DHCP renewal
networking script).
conf.c
test/system/008-confload