properly check for debug and verbose messages to suppress (bug #4294)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5726 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
5759f3b9b0
commit
815a2a9fc6
2
logger.c
2
logger.c
|
@ -671,7 +671,7 @@ void ast_log(int level, const char *file, int line, const char *function, const
|
||||||
|
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
if (!option_verbose && !option_debug && (level == __LOG_DEBUG)) {
|
if ((!option_verbose && (level == __LOG_VERBOSE)) || (!option_debug && (level == __LOG_DEBUG))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* Ignore anything that never gets logged anywhere */
|
/* Ignore anything that never gets logged anywhere */
|
||||||
|
|
Reference in New Issue