properly check for debug and verbose messages to suppress (bug #4294)
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 19 May 2005 02:54:23 +0000 (02:54 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 19 May 2005 02:54:23 +0000 (02:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5726 65c4cc65-6c06-0410-ace0-fbb531ad65f3

logger.c

index 49444df..3bf6f02 100755 (executable)
--- 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 */