Fix debug output for Api* connection errors.

Refs #6070
This commit is contained in:
Michael Friedrich 2014-05-22 21:20:18 +02:00
parent 60b772334d
commit c2dadc5f88
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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());
}