Log(LogCritical, "Application", "Cannot update PID file. Aborting restart operation.");
return;
}
+
+ Log(LogDebug, "Application")
+ << "Keeping pid '" << m_ReloadProcess << "' open.";
+
ClosePidFile(false);
} else
ClosePidFile(true);
CONTEXT("Creating config update for file '" + file + "'");
Log(LogNotice, "ApiListener")
- << "Creating config update for file '" << file << "'";
+ << "Creating config update for file '" << file << "'.";
std::ifstream fp(file.CStr(), std::ifstream::binary);
if (!fp)
newTimestamp = newConfig->Get("/.timestamp");
/* skip update if our config is newer */
- if (oldTimestamp >= newTimestamp)
+ if (oldTimestamp >= newTimestamp) {
+ /* TODO: Less ugly */
+ Log(LogInformation, "ApiListener")
+ << "Old timestamp '" << std::setprecision(std::numeric_limits<double>::digits10 + 1)
+ << oldTimestamp << "' is more recent than new one '" << newTimestamp << "'.";
return false;
+ }
+
+ Log(LogInformation, "ApiListener")
+ << "New timestamp '" << std::setprecision (std::numeric_limits<double>::digits10 + 1) << newTimestamp
+ << "' is more recent than old one '" << oldTimestamp << "'.";
{
ObjectLock olock(newConfig);
return Empty;
}
+ Log(LogInformation, "ApiListener")
+ << "Applying config update from endpoint '" << origin->FromClient->GetEndpoint()->GetName() << "' of zone '"
+ << origin->FromZone->GetName() << "'";
+
Dictionary::Ptr updateV1 = params->Get("update");
Dictionary::Ptr updateV2 = params->Get("update_v2");