Skip to content
Snippets Groups Projects
Commit f5c3a23a authored by Mark Spencer's avatar Mark Spencer
Browse files

Don't double verbose things

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent cf036062
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment