aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-01-27 18:20:17 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-01-27 18:20:17 +0000
commitee12a11317c039ce2948ae48d12bd349b8536146 (patch)
treeee38210237be78aae61bb9ad3e34ee48f8005adc
parent516e279643c5c069a1ed58801152ffbb203141d1 (diff)
Don't double verbose things
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2083 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xlogger.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/logger.c b/logger.c
index 5e1aa3030..09dbef2ce 100755
--- a/logger.c
+++ b/logger.c
@@ -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);