From a3e950bd07ed216eacc8b37153292561d5dd31cf Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 5 Aug 2024 18:50:29 +0100 Subject: [Minor] Show better log when proxy finishes it's connection --- src/rspamd_proxy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index 281cfec4f..604cb7d09 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -2212,7 +2212,10 @@ proxy_client_finish_handler(struct rspamd_http_connection *conn, proxy_send_master_message(session); } else { - msg_info_session("finished master connection"); + msg_info_session("finished master connection to %s; HTTP code: %d", + rspamd_inet_address_to_string_pretty( + rspamd_upstream_addr_cur(session->master_conn->up)), + msg->code); proxy_backend_close_connection(session->master_conn); REF_RELEASE(session); } -- cgit v1.2.3