diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-27 18:20:17 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-27 18:20:17 +0000 |
commit | ee12a11317c039ce2948ae48d12bd349b8536146 (patch) | |
tree | ee38210237be78aae61bb9ad3e34ee48f8005adc /logger.c | |
parent | 516e279643c5c069a1ed58801152ffbb203141d1 (diff) |
Don't double verbose things
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2083 f38db490-d61c-443f-a65b-d21fe96a405b
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); |