Skip to content

Commit

Permalink
Merge pull request #222 from BeaudanBrown/fix-https-log
Browse files Browse the repository at this point in the history
Print endpoint with tostring
  • Loading branch information
msgmaxim committed Jul 11, 2019
2 parents b206ae9 + cd70c87 commit d4c3a54
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions httpserver/https_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,11 @@ void HttpsClientSession::start() {
/// TODO: I think I should just call again if ec ==
/// EINTR
if (ec) {
std::ostringstream os;
os << endpoint;

LOKI_LOG(
error,
"[https client]: could not connect to {}, message: {} ({})",
os.str(), ec.message(), ec.value());
LOKI_LOG(error,
"[https client]: could not connect to {}:{}, message: "
"{} ({})",
endpoint.address().to_string(), endpoint.port(),
ec.message(), ec.value());
trigger_callback(SNodeError::NO_REACH, nullptr);
return;
}
Expand Down

0 comments on commit d4c3a54

Please sign in to comment.