Don't double verbose things

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-01-27 18:20:17 +00:00
parent cf036062c4
commit f5c3a23a75

View File

@@ -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);