]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Show better log when proxy finishes it's connection
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 5 Aug 2024 17:50:29 +0000 (18:50 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 5 Aug 2024 17:50:29 +0000 (18:50 +0100)
src/rspamd_proxy.c

index 281cfec4f2e6215bfd3e4f978efceb7c0bb9717d..604cb7d096c254d8bfadbcd00f80059ffe5fdb7a 100644 (file)
@@ -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);
        }