From 7eab2eb9de931236b7bbc10265b963a9948492f0 Mon Sep 17 00:00:00 2001 From: Tobias Markmann <tm@ayena.de> Date: Tue, 25 Oct 2016 12:29:06 +0200 Subject: Log address when failing to initialise HostAddress from string Test-Information: Builds on macOS 10.12.1. Change-Id: Id06e66171cbc5b6417701a8de57b901b0d80f17c 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; } } -- cgit v0.10.2-6-g49f6