mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
API: also log error behind "No data received on new API connection"
This commit is contained in:
parent
d55c3644a2
commit
411c57aac5
@ -793,12 +793,12 @@ void ApiListener::NewClientHandlerInternal(
|
||||
if (client->async_fill(yc[ec]) == 0u) {
|
||||
if (identity.IsEmpty()) {
|
||||
Log(LogInformation, "ApiListener")
|
||||
<< "No data received on new API connection " << conninfo << ". "
|
||||
<< "Ensure that the remote endpoints are properly configured in a cluster setup.";
|
||||
<< "No data received on new API connection " << conninfo << ": " << ec.message()
|
||||
<< ". Ensure that the remote endpoints are properly configured in a cluster setup.";
|
||||
} else {
|
||||
Log(LogWarning, "ApiListener")
|
||||
<< "No data received on new API connection " << conninfo << " for identity '" << identity << "'. "
|
||||
<< "Ensure that the remote endpoints are properly configured in a cluster setup.";
|
||||
<< "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.";
|
||||
}
|
||||
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user