mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 10:51:40 +00:00
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:
10
logger.c
10
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);
|
||||
|
Reference in New Issue
Block a user