mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 09:05:06 -05:00
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).
This commit is contained in:
@@ -102,7 +102,7 @@ check_chronyc_output "^[^=]*
|
||||
run_chronyc "reload sources" || test_fail
|
||||
|
||||
stop_chronyd || test_fail
|
||||
check_chronyd_message_count "Could not add source.*\.5\.5.*in use" 3 3 || test_fail
|
||||
check_chronyd_message_count "Could not add source" 3 3 || test_fail
|
||||
check_chronyd_message_count "Could not add source.*\.5\.5.*in use" 1 1 || test_fail
|
||||
check_chronyd_message_count "Could not add source" 1 1 || test_fail
|
||||
|
||||
test_pass
|
||||
|
||||
Reference in New Issue
Block a user