mirror of https://github.com/Icinga/icinga2.git
parent
60b772334d
commit
c2dadc5f88
|
@ -87,7 +87,7 @@ void ApiClient::SendMessage(const Dictionary::Ptr& message)
|
|||
} catch (const std::exception& ex) {
|
||||
std::ostringstream info, debug;
|
||||
info << "Error while sending JSON-RPC message for identity '" << m_Identity << "'";
|
||||
debug << info << std::endl << DiagnosticInformation(ex);
|
||||
debug << info.str() << std::endl << DiagnosticInformation(ex);
|
||||
Log(LogWarning, "remote", info.str());
|
||||
Log(LogDebug, "remote", debug.str());
|
||||
|
||||
|
|
|
@ -182,7 +182,7 @@ void ApiListener::AddConnection(const String& node, const String& service)
|
|||
} catch (const std::exception& ex) {
|
||||
std::ostringstream info, debug;
|
||||
info << "Cannot connect to host '" << node << "' on port '" << service << "'";
|
||||
debug << info << std::endl << DiagnosticInformation(ex);
|
||||
debug << info.str() << std::endl << DiagnosticInformation(ex);
|
||||
Log(LogCritical, "remote", info.str());
|
||||
Log(LogDebug, "remote", debug.str());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue