From b2ddd8d128c7b9f4ff15e3809329cd82b87cab2e Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 14 Mar 2021 17:17:26 +0100 Subject: [PATCH] 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. --- jcc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.39.2