diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index e2503601a..aa13eaf56 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -743,7 +743,8 @@ void ApiListener::NewClientHandlerInternal( } Log(LogCritical, "ApiListener") - << "Client TLS handshake failed (" << conninfo << "): " << ec.message(); + << (role == RoleClient ? "Client" : "Server") + << " TLS handshake failed (" << conninfo << "): " << ec.message(); return; }