summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2016-10-25 10:29:06 (GMT)
committerTobias Markmann <tm@ayena.de>2016-11-07 08:30:05 (GMT)
commit7eab2eb9de931236b7bbc10265b963a9948492f0 (patch)
tree86efb533d0790fd0343a646f9032386297ba6c25
parentb55dcace49c6dc8c18c854f27fbb75f96e846f24 (diff)
downloadswift-7eab2eb9de931236b7bbc10265b963a9948492f0.zip
swift-7eab2eb9de931236b7bbc10265b963a9948492f0.tar.bz2
Log address when failing to initialise HostAddress from string
Test-Information: Builds on macOS 10.12.1. Change-Id: Id06e66171cbc5b6417701a8de57b901b0d80f17c
-rw-r--r--Swiften/Network/HostAddress.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Network/HostAddress.cpp b/Swiften/Network/HostAddress.cpp
index a6c77f3..63cd3f2 100644
--- a/Swiften/Network/HostAddress.cpp
+++ b/Swiften/Network/HostAddress.cpp
@@ -24,7 +24,7 @@ HostAddress::HostAddress(const std::string& address) {
boost::system::error_code errorCode;
address_ = boost::asio::ip::address::from_string(address, errorCode);
if (errorCode) {
- SWIFT_LOG(warning) << "error: " << errorCode.message() << std::endl;
+ SWIFT_LOG(warning) << "error: " << errorCode.message() << " (" << errorCode << ")" << ", " << "address: " << address << std::endl;
}
}