From d48ea872e8643898b955eca8089bfda8d6ef591f Mon Sep 17 00:00:00 2001 From: Denis Feklushkin Date: Sat, 9 Nov 2024 16:16:26 +0300 Subject: [PATCH] HTTP connection handler call: peerAddress added to the error message --- source/vibe/http/server.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/vibe/http/server.d b/source/vibe/http/server.d index 1bc8d3f..142daa9 100644 --- a/source/vibe/http/server.d +++ b/source/vibe/http/server.d @@ -1897,7 +1897,7 @@ private HTTPListener listenHTTPPlain(HTTPServerSettings settings, HTTPServerRequ auto ret = listenTCP(listen_info.bindPort, (TCPConnection conn) nothrow @safe { try handleHTTPConnection(conn, listen_info); catch (Exception e) { - logError("HTTP connection handler has thrown: %s", e.msg); + logError("Peer %s: HTTP connection handler has thrown: %s", conn.peerAddress, e.msg); debug logDebug("Full error: %s", () @trusted { return e.toString().sanitize(); } ()); try conn.close(); catch (Exception e) logError("Failed to close connection: %s", e.msg);