From: Fabian Keil Date: Wed, 13 May 2020 09:53:12 +0000 (+0200) Subject: Log complete https request lines with LOG_LEVEL_CLF X-Git-Tag: v_3_0_29~420 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=c656a3e40efa95089b09b8d531e823f826575c3c;p=privoxy.git Log complete https request lines with LOG_LEVEL_CLF ... at the end of handle_established_connection(). Sponsored by: Robert Klemme --- diff --git a/jcc.c b/jcc.c index feab1acf..7232e7d7 100644 --- a/jcc.c +++ b/jcc.c @@ -3440,9 +3440,19 @@ static void handle_established_connection(struct client_state *csp) } #endif - log_error(LOG_LEVEL_CLF, "%s - - [%T] \"%s\" 200 %llu", - csp->ip_addr_str, http->ocmd, csp->content_length); - +#ifdef FEATURE_HTTPS_INSPECTION + if (client_use_ssl(csp)) + { + log_error(LOG_LEVEL_CLF, "%s - - [%T] \"%s https://%s%s %s\" 200 %llu", + csp->ip_addr_str, http->gpc, http->hostport, http->path, + http->ver, csp->content_length); + } + else +#endif + { + log_error(LOG_LEVEL_CLF, "%s - - [%T] \"%s\" 200 %llu", + csp->ip_addr_str, http->ocmd, csp->content_length); + } csp->server_connection.timestamp = time(NULL); }