mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user