mirror of https://github.com/Icinga/icinga2.git
ApiListener: log why bind(2) failed
This commit is contained in:
parent
e26774c7f8
commit
b5fddaf3ce
|
@ -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")
|
||||
<< "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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue