diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index 45dc6913165..7550b11c3c7 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -623,7 +623,7 @@ void ApiListener::NewClientHandlerInternal( identity = GetCertificateCN(cert); } catch (const std::exception&) { Log(LogCritical, "ApiListener") - << "Cannot get certificate common name from cert path: '" << GetDefaultCertPath() << "'."; + << "Cannot get certificate common name from peer (" << conninfo << ") cert."; return; }