From: Fabian Keil Date: Fri, 29 May 2020 16:57:28 +0000 (+0200) Subject: Rename LOG_LEVEL_GPC to LOG_LEVEL_REQUEST X-Git-Tag: v_3_0_29~361 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=c913ac4a0852f81fe6b4f43a2f2dfd703c94352f Rename LOG_LEVEL_GPC to LOG_LEVEL_REQUEST Only the shadow knows what "GPC" is supposed to stand for. --- diff --git a/errlog.c b/errlog.c index a085227e..05a2c82e 100644 --- a/errlog.c +++ b/errlog.c @@ -601,7 +601,7 @@ static inline const char *get_log_level_string(int loglevel) case LOG_LEVEL_FATAL: log_level_string = "Fatal error"; break; - case LOG_LEVEL_GPC: + case LOG_LEVEL_REQUEST: log_level_string = "Request"; break; case LOG_LEVEL_CONNECT: @@ -684,7 +684,7 @@ void log_error(int loglevel, const char *fmt, ...) * the taskbar icon animate. (There is an option to disable * this but checking that is handled inside LogShowActivity()). */ - if ((loglevel == LOG_LEVEL_GPC) || (loglevel == LOG_LEVEL_CRUNCH)) + if ((loglevel == LOG_LEVEL_REQUEST) || (loglevel == LOG_LEVEL_CRUNCH)) { LogShowActivity(); } diff --git a/errlog.h b/errlog.h index 0a805f42..5bfc16a5 100644 --- a/errlog.h +++ b/errlog.h @@ -37,8 +37,7 @@ /* Debug level for errors */ -/* XXX: Should be renamed. */ -#define LOG_LEVEL_GPC 0x0001 +#define LOG_LEVEL_REQUEST 0x0001 #define LOG_LEVEL_CONNECT 0x0002 #define LOG_LEVEL_IO 0x0004 #define LOG_LEVEL_HEADER 0x0008 diff --git a/jcc.c b/jcc.c index 898618aa..33603c0e 100644 --- a/jcc.c +++ b/jcc.c @@ -2397,7 +2397,7 @@ 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_GPC, "https://%s%s", csp->http->hostport, + log_error(LOG_LEVEL_REQUEST, "https://%s%s", csp->http->hostport, csp->http->path); return err; @@ -3675,7 +3675,7 @@ static void chat(struct client_state *csp) if (!client_use_ssl(csp)) #endif { - log_error(LOG_LEVEL_GPC, "%s%s", http->hostport, http->path); + log_error(LOG_LEVEL_REQUEST, "%s%s", http->hostport, http->path); } if (fwd->forward_host) {