diff options
author | Mark Spencer <markster@digium.com> | 2004-01-27 18:20:17 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-01-27 18:20:17 +0000 |
commit | f5c3a23a7531988b873dd5014855cb0c8280af77 (patch) | |
tree | ee38210237be78aae61bb9ad3e34ee48f8005adc /logger.c | |
parent | cf036062c460e26e0917dfd319153b906a3e21c0 (diff) |
Don't double verbose things
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'logger.c')
-rwxr-xr-x | logger.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -482,10 +482,12 @@ void ast_log(int level, const char *file, int line, const char *function, const * we don't have the logger chain configured yet, * so just log to stdout */ - va_start(ap, fmt); - vsnprintf(buf, sizeof(buf), fmt, ap); - va_end(ap); - fprintf(stdout, buf); + if (level != __LOG_VERBOSE) { + va_start(ap, fmt); + vsnprintf(buf, sizeof(buf), fmt, ap); + va_end(ap); + fprintf(stdout, buf); + } } ast_mutex_unlock(&loglock); |