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:
Alexander Aleksandrovič Klimov 2025-02-03 15:39:26 +01:00 committed by GitHub
commit 065dfe4c40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;