summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2001-08-27 17:44:55 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2001-08-27 17:44:55 +0000
commitbf7a671d87a46d5e558980efc16e1fe5d693714d (patch)
treebe8b3a54f970ea6664ffb05abe2756c0cb5fceab
parentf72ebfe0d8de0feb3d31f8eb622c8959c4ea0253 (diff)
downloadtinyproxy-bf7a671d87a46d5e558980efc16e1fe5d693714d.tar.gz
tinyproxy-bf7a671d87a46d5e558980efc16e1fe5d693714d.zip
Fixed a problem where the connect messages were not getting logged if the
log level was set to INFO.
-rw-r--r--src/log.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/log.c b/src/log.c
index 1da1d98..3a3465a 100644
--- a/src/log.c
+++ b/src/log.c
@@ -1,4 +1,4 @@
-/* $Id: log.c,v 1.10 2001-08-26 23:37:26 rjkaes Exp $
+/* $Id: log.c,v 1.11 2001-08-27 17:44:55 rjkaes Exp $
*
* Logs the various messages which tinyproxy produces to either a log file or
* the syslog daemon. Not much to it...
@@ -78,8 +78,7 @@ void log_message(short int level, char *fmt, ...)
*/
if (level == LOG_INFO && log_level == LOG_CONN)
return;
-
- if (level > log_level)
+ else if (level > log_level && level != LOG_CONN && log_level != LOG_INFO)
return;
#ifdef HAVE_SYSLOG_H