mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
Merge pull request #9928 from Icinga/no-data-received-on-new-api-connection
API: also log error behind "No data received on new API connection"
This commit is contained in:
commit
065dfe4c40
@ -793,12 +793,12 @@ void ApiListener::NewClientHandlerInternal(
|
|||||||
if (client->async_fill(yc[ec]) == 0u) {
|
if (client->async_fill(yc[ec]) == 0u) {
|
||||||
if (identity.IsEmpty()) {
|
if (identity.IsEmpty()) {
|
||||||
Log(LogInformation, "ApiListener")
|
Log(LogInformation, "ApiListener")
|
||||||
<< "No data received on new API connection " << conninfo << ". "
|
<< "No data received on new API connection " << conninfo << ": " << ec.message()
|
||||||
<< "Ensure that the remote endpoints are properly configured in a cluster setup.";
|
<< ". Ensure that the remote endpoints are properly configured in a cluster setup.";
|
||||||
} else {
|
} else {
|
||||||
Log(LogWarning, "ApiListener")
|
Log(LogWarning, "ApiListener")
|
||||||
<< "No data received on new API connection " << conninfo << " for identity '" << identity << "'. "
|
<< "No data received on new API connection " << conninfo << " for identity '" << identity << "': " << ec.message()
|
||||||
<< "Ensure that the remote endpoints are properly configured in a cluster setup.";
|
<< ". Ensure that the remote endpoints are properly configured in a cluster setup.";
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user