projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf03606
)
Don't double verbose things
author
Mark Spencer
<markster@digium.com>
Tue, 27 Jan 2004 18:20:17 +0000
(18:20 +0000)
committer
Mark Spencer
<markster@digium.com>
Tue, 27 Jan 2004 18:20:17 +0000
(18:20 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2083
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
logger.c
patch
|
blob
|
history
diff --git
a/logger.c
b/logger.c
index
5e1aa30
..
09dbef2
100755
(executable)
--- 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);