ApiListener: log why bind(2) failed

This commit is contained in:
Alexander A. Klimov 2019-02-21 10:41:31 +01:00
parent e26774c7f8
commit b5fddaf3ce

View File

@ -385,9 +385,9 @@ bool ApiListener::AddListener(const String& node, const String& service)
} }
} }
} }
} catch (const std::exception&) { } catch (const std::exception& ex) {
Log(LogCritical, "ApiListener") Log(LogCritical, "ApiListener")
<< "Cannot bind TCP socket for host '" << node << "' on port '" << service << "'."; << "Cannot bind TCP socket for host '" << node << "' on port '" << service << "': " << DiagnosticInformation(ex, false);
return false; return false;
} }