From: Fabian Keil Date: Fri, 6 Feb 2009 17:51:38 +0000 (+0000) Subject: Be prepared if I break the log module initialization again. X-Git-Tag: v_3_0_11~96 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=46dcef7ea474f37fae003888b4079b8d450fc936 Be prepared if I break the log module initialization again. --- diff --git a/errlog.c b/errlog.c index 22f5ae4a..6178d4bf 100644 --- a/errlog.c +++ b/errlog.c @@ -1,4 +1,4 @@ -const char errlog_rcs[] = "$Id: errlog.c,v 1.83 2008/12/04 18:14:32 fabiankeil Exp $"; +const char errlog_rcs[] = "$Id: errlog.c,v 1.84 2008/12/14 15:46:22 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/errlog.c,v $ @@ -33,6 +33,9 @@ const char errlog_rcs[] = "$Id: errlog.c,v 1.83 2008/12/04 18:14:32 fabiankeil E * * Revisions : * $Log: errlog.c,v $ + * Revision 1.84 2008/12/14 15:46:22 fabiankeil + * Give crunched requests their own log level. + * * Revision 1.83 2008/12/04 18:14:32 fabiankeil * Fix some cparser warnings. * @@ -1025,6 +1028,11 @@ void log_error(int loglevel, const char *fmt, ...) #endif ) { + if (loglevel == LOG_LEVEL_FATAL) + { + fatal_error("Fatal error. You're not supposed to" + "see this message. Please file a bug report."); + } return; }