mirror of https://github.com/Icinga/icinga2.git
Logs: Change config sync update to highlight an information, not an error
fixes #5484
This commit is contained in:
parent
b316de8aea
commit
9e17ff874b
|
@ -100,10 +100,11 @@ bool ApiListener::UpdateConfigDir(const ConfigDirInformation& oldConfigInfo, con
|
|||
/* skip update if our configuration files are more recent */
|
||||
if (oldTimestamp >= newTimestamp) {
|
||||
Log(LogInformation, "ApiListener")
|
||||
<< "Cannot apply configuration file update for path '" << configDir << "'. Current timestamp '"
|
||||
<< "Our configuration is more recent than the received configuration update."
|
||||
<< " Ignoring configuration file update for path '" << configDir << "'. Current timestamp '"
|
||||
<< Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", oldTimestamp) << "' ("
|
||||
<< std::fixed << std::setprecision(6) << oldTimestamp
|
||||
<< ") is more recent than received timestamp '"
|
||||
<< ") >= received timestamp '"
|
||||
<< Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", newTimestamp) << "' ("
|
||||
<< newTimestamp << ").";
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue