From db6237478039e4a89db5a013ecf9a4c73e5b652b Mon Sep 17 00:00:00 2001 From: kpfleming Date: Fri, 20 May 2005 03:52:27 +0000 Subject: add a little comment to keep someone else from having the same misunderstanding I had :-) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5748 f38db490-d61c-443f-a65b-d21fe96a405b --- logger.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/logger.c b/logger.c index 49444df9e..61395c1a9 100755 --- a/logger.c +++ b/logger.c @@ -671,9 +671,15 @@ void ast_log(int level, const char *file, int line, const char *function, const va_list ap; + /* skip this message unless: + - option_verbose is greater than zero _or_ + - option_debug is greater than zero _or_ + - the message is of level LOG_DEBUG (which allows for 'level zero' LOG_DEBUG messages) + */ if (!option_verbose && !option_debug && (level == __LOG_DEBUG)) { return; } + /* Ignore anything that never gets logged anywhere */ if (!(global_logmask & (1 << level))) return; -- cgit v1.2.3