Fixed a problem with the new LOG_CONN log level.

This commit is contained in:
Robert James Kaes 2001-08-26 23:37:26 +00:00
parent e19889ff5b
commit cc70fc6f43

View File

@ -1,4 +1,4 @@
/* $Id: log.c,v 1.9 2001-08-26 21:10:04 rjkaes Exp $ /* $Id: log.c,v 1.10 2001-08-26 23:37:26 rjkaes Exp $
* *
* Logs the various messages which tinyproxy produces to either a log file or * Logs the various messages which tinyproxy produces to either a log file or
* the syslog daemon. Not much to it... * the syslog daemon. Not much to it...
@ -76,13 +76,11 @@ void log_message(short int level, char *fmt, ...)
/* /*
* Figure out if we should write the message or not. * Figure out if we should write the message or not.
*/ */
if (log_level != LOG_CONN) { if (level == LOG_INFO && log_level == LOG_CONN)
if (level > log_level && level != LOG_CONN) return;
return;
} else { if (level > log_level)
if (level == LOG_INFO) return;
return;
}
#ifdef HAVE_SYSLOG_H #ifdef HAVE_SYSLOG_H
if (config.syslog && level == LOG_CONN) if (config.syslog && level == LOG_CONN)