X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=errlog.c;h=76ad1fd3ba21ea34d4e0863b593913d238449597;hp=ffc49209a1763c65b3632343719d18a7557de58f;hb=b655349f3a38329dd7042a3315e8c9e0fef9e51c;hpb=ffa11e6cc708137ca152a78fcfa4bdd03bfa81c1 diff --git a/errlog.c b/errlog.c index ffc49209..76ad1fd3 100644 --- a/errlog.c +++ b/errlog.c @@ -1,4 +1,4 @@ -const char errlog_rcs[] = "$Id: errlog.c,v 1.14 2001/07/19 19:03:48 haroon Exp $"; +const char errlog_rcs[] = "$Id: errlog.c,v 1.15 2001/07/29 17:41:10 jongfoster Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/errlog.c,v $ @@ -33,6 +33,9 @@ const char errlog_rcs[] = "$Id: errlog.c,v 1.14 2001/07/19 19:03:48 haroon Exp $ * * Revisions : * $Log: errlog.c,v $ + * Revision 1.15 2001/07/29 17:41:10 jongfoster + * Now prints thread ID for each message (pthreads only) + * * Revision 1.14 2001/07/19 19:03:48 haroon * - Added case for LOG_LEVEL_POPUPS * @@ -332,16 +335,16 @@ void log_error(int loglevel, char *fmt, ...) case LOG_LEVEL_RE_FILTER: outc = sprintf(outbuf, "IJB(%d) Re-Filter: ", this_thread); break; -#ifdef FORCE_LOAD +#ifdef FEATURE_FORCE_LOAD case LOG_LEVEL_FORCE: outc = sprintf(outbuf, "IJB(%d) Force: ", this_thread); break; -#endif /* def FORCE_LOAD */ -#ifdef FAST_REDIRECTS +#endif /* def FEATURE_FORCE_LOAD */ +#ifdef FEATURE_FAST_REDIRECTS case LOG_LEVEL_REDIRECTS: outc = sprintf(outbuf, "IJB(%d) Redirect: ", this_thread); break; -#endif /* def FAST_REDIRECTS */ +#endif /* def FEATURE_FAST_REDIRECTS */ case LOG_LEVEL_DEANIMATE: outc = sprintf(outbuf, "IJB(%d) Gif-Deanimate: ", this_thread); break; @@ -349,11 +352,11 @@ void log_error(int loglevel, char *fmt, ...) outc = 0; outbuf[0] = '\0'; break; -#ifdef KILLPOPUPS +#ifdef FEATURE_KILL_POPUPS case LOG_LEVEL_POPUPS: outc = sprintf(outbuf, "IJB(%d) Kill-Popups: ", this_thread); break; -#endif /* def KILLPOPUPS */ +#endif /* def FEATURE_KILL_POPUPS */ default: outc = sprintf(outbuf, "IJB(%d) UNKNOWN LOG TYPE(%d): ", this_thread, loglevel); break;