From: Michael Friedrich Date: Thu, 15 Oct 2015 14:52:49 +0000 (+0200) Subject: Fix log message formatting for object version X-Git-Tag: v2.4.0~196 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=934fb64b9e4c2a916413eda72ad19ddaf0bdd7fc;p=icinga2 Fix log message formatting for object version refs #10355 --- diff --git a/lib/remote/apilistener-configsync.cpp b/lib/remote/apilistener-configsync.cpp index 458b7af6e..e61d14c75 100644 --- a/lib/remote/apilistener-configsync.cpp +++ b/lib/remote/apilistener-configsync.cpp @@ -140,8 +140,8 @@ Value ApiListener::ConfigUpdateObjectAPIHandler(const MessageOrigin::Ptr& origin if (objVersion <= object->GetVersion()) { Log(LogNotice, "ApiListener") << "Discarding config update for object '" << object->GetName() - << "': Object version " << object->GetVersion() - << " is more recent than the received version " << objVersion << "."; + << "': Object version " << std::fixed << object->GetVersion() + << " is more recent than the received version " << std::fixed << objVersion << "."; return Empty; }