aboutsummaryrefslogtreecommitdiffstats
path: root/logger.c
diff options
context:
space:
mode:
Diffstat (limited to 'logger.c')
-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);