summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2001-08-26 23:37:26 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2001-08-26 23:37:26 +0000
commitcc70fc6f43bf91e8f23bdf740f2c0f8363049d86 (patch)
treefce57ff8318e4ba2f3946092adce8396dadff96a
parente19889ff5b55be991302e11dae942c9b2b8450fb (diff)
downloadtinyproxy-cc70fc6f43bf91e8f23bdf740f2c0f8363049d86.tar.gz
tinyproxy-cc70fc6f43bf91e8f23bdf740f2c0f8363049d86.zip
Fixed a problem with the new LOG_CONN log level.
Diffstat (limited to '')
-rw-r--r--src/log.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/log.c b/src/log.c
index 1e3100c..1da1d98 100644
--- a/src/log.c
+++ b/src/log.c
@@ -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
* 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.
*/
- if (log_level != LOG_CONN) {
- if (level > log_level && level != LOG_CONN)
- return;
- } else {
- if (level == LOG_INFO)
- return;
- }
+ if (level == LOG_INFO && log_level == LOG_CONN)
+ return;
+
+ if (level > log_level)
+ return;
#ifdef HAVE_SYSLOG_H
if (config.syslog && level == LOG_CONN)