From: wessels <> Date: Wed, 5 Aug 1998 12:16:32 +0000 (+0000) Subject: Now syslog debug levels 0 and 1. 0 gets LOG_WARNING and X-Git-Tag: SQUID_3_0_PRE1~2931 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2d22efa6a0e9b9a27b068dc23c54c7ee94842b87;p=thirdparty%2Fsquid.git Now syslog debug levels 0 and 1. 0 gets LOG_WARNING and 1 gets LOG_ERR --- diff --git a/src/debug.cc b/src/debug.cc index e6b58ab9f0..d3ab5617d3 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -1,6 +1,6 @@ /* - * $Id: debug.cc,v 1.67 1998/07/22 20:37:12 wessels Exp $ + * $Id: debug.cc,v 1.68 1998/08/05 06:16:32 wessels Exp $ * * DEBUG: section 0 Debug Routines * AUTHOR: Harvest Derived @@ -80,12 +80,12 @@ _db_print(va_alist) debugLogTime(squid_curtime), format); #if HAVE_SYSLOG - /* level 0 go to syslog */ - if (_db_level == 0 && opt_syslog_enable) { + /* level 0,1 go to syslog */ + if (_db_level <= 1 && opt_syslog_enable) { tmpbuf[0] = '\0'; vsnprintf(tmpbuf, BUFSIZ, format, args); tmpbuf[1023] = '\0'; - syslog(LOG_ERR, "%s", tmpbuf); + syslog(_db_level == 0 ? LOG_WARNING : LOG_ERR, "%s", tmpbuf); } #endif /* HAVE_SYSLOG */ /* write to log file */