From 411c57aac5860859290d0f5057db0f6b59d0cf65 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 8 Nov 2024 16:42:11 +0100 Subject: [PATCH] API: also log error behind "No data received on new API connection" --- lib/remote/apilistener.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index 519469aafa..5863e52e83 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -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;