From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 14 Mar 2021 16:17:26 +0000 (+0100)
Subject: Don't log the applied actions in process_encrypted_request()
X-Git-Tag: v_3_0_33~104^2~12
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/@default-cgi@/developer-manual/static/diff?a=commitdiff_plain;h=b2ddd8d128c7b9f4ff15e3809329cd82b87cab2e;p=privoxy.git

Don't log the applied actions in process_encrypted_request()

Log them in continue_https_chat() instead to mirror chat().

Prevents the applied actions from getting logged twice
for the first request on an https-inspected connection.
---

diff --git a/jcc.c b/jcc.c
index aec8e2a7..20df6df5 100644
--- a/jcc.c
+++ b/jcc.c
@@ -2871,7 +2871,6 @@ static jb_err process_encrypted_request(struct client_state *csp)
    }
 
    log_error(LOG_LEVEL_HEADER, "Encrypted request processed");
-   log_applied_actions(csp->action);
    log_error(LOG_LEVEL_REQUEST, "https://%s%s", csp->http->hostport,
       csp->http->path);
 
@@ -2977,6 +2976,8 @@ static void continue_https_chat(struct client_state *csp)
       return;
    }
 
+   log_applied_actions(csp->action);
+
    log_error(LOG_LEVEL_CONNECT,
       "Reusing server socket %d connected to %s. Requests already sent: %u.",
       csp->server_connection.sfd, csp->server_connection.host,