util: Don't duplicate debug messages, they're already on stderr
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
6943d41d6c
commit
a56721b61c
1 changed files with 4 additions and 4 deletions
8
util.c
8
util.c
|
@ -54,12 +54,12 @@ void name(const char *format, ...) { \
|
|||
fprintf(stderr, "%lu.%04lu: ", \
|
||||
tp.tv_sec - log_debug_start, \
|
||||
tp.tv_nsec / (100 * 1000)); \
|
||||
} else { \
|
||||
va_start(args, format); \
|
||||
__vsyslog(level, format, args); \
|
||||
va_end(args); \
|
||||
} \
|
||||
\
|
||||
va_start(args, format); \
|
||||
__vsyslog(level, format, args); \
|
||||
va_end(args); \
|
||||
\
|
||||
if (setlogmask(0) & LOG_MASK(LOG_DEBUG) || \
|
||||
setlogmask(0) == LOG_MASK(LOG_EMERG)) { \
|
||||
va_start(args, format); \
|
||||
|
|
Loading…
Reference in a new issue