Logs: Change config sync update to highlight an information, not an error

fixes #5484
This commit is contained in:
Michael Friedrich 2017-09-08 13:28:11 +02:00 committed by Gunnar Beutner
parent b316de8aea
commit 9e17ff874b
1 changed files with 3 additions and 2 deletions

View File

@ -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;