From: Fabian Keil Date: Mon, 15 Dec 2008 18:45:51 +0000 (+0000) Subject: When logging crunches, log the whole URL, so one can easily X-Git-Tag: v_3_0_11~129 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=4ad1417c8beeba9fe3a90a36dd63e3eef24b6561 When logging crunches, log the whole URL, so one can easily differentiate between vanilla HTTP and CONNECT requests. --- diff --git a/jcc.c b/jcc.c index 2423c285..eebac438 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.211 2008/12/06 10:05:03 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.212 2008/12/14 15:46:22 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -33,6 +33,9 @@ const char jcc_rcs[] = "$Id: jcc.c,v 1.211 2008/12/06 10:05:03 fabiankeil Exp $" * * Revisions : * $Log: jcc.c,v $ + * Revision 1.212 2008/12/14 15:46:22 fabiankeil + * Give crunched requests their own log level. + * * Revision 1.211 2008/12/06 10:05:03 fabiankeil * Downgrade "Received x bytes while expecting y." message to * LOG_LEVEL_CONNECT as it doesn't necessarily indicate an error. @@ -1821,8 +1824,7 @@ static void send_crunch_response(const struct client_state *csp, struct http_res } /* Log that the request was crunched and why. */ - log_error(LOG_LEVEL_CRUNCH, "%s: %s%s", - crunch_reason(rsp), http->hostport, http->path); + log_error(LOG_LEVEL_CRUNCH, "%s: %s", crunch_reason(rsp), http->url); log_error(LOG_LEVEL_CLF, "%s - - [%T] \"%s\" %s %d", csp->ip_addr_str, http->ocmd, status_code, rsp->content_length);