From: Kevin P. Fleming Date: Thu, 19 May 2005 02:54:23 +0000 (+0000) Subject: properly check for debug and verbose messages to suppress (bug #4294) X-Git-Tag: 1.2.0-beta1~616 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e7675e728a7dc670d0cb41416a0bf802162db70;p=thirdparty%2Fasterisk.git properly check for debug and verbose messages to suppress (bug #4294) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5726 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/logger.c b/logger.c index 49444df9e0..3bf6f02fb0 100755 --- a/logger.c +++ b/logger.c @@ -671,7 +671,7 @@ void ast_log(int level, const char *file, int line, const char *function, const va_list ap; - if (!option_verbose && !option_debug && (level == __LOG_DEBUG)) { + if ((!option_verbose && (level == __LOG_VERBOSE)) || (!option_debug && (level == __LOG_DEBUG))) { return; } /* Ignore anything that never gets logged anywhere */