1
0
mirror of https://passt.top/passt synced 2024-11-05 20:31:11 +00:00

util: Don't duplicate debug messages, they're already on stderr

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-10-15 20:43:41 +02:00
parent 6943d41d6c
commit a56721b61c

4
util.c
View File

@ -54,11 +54,11 @@ void name(const char *format, ...) { \
fprintf(stderr, "%lu.%04lu: ", \ fprintf(stderr, "%lu.%04lu: ", \
tp.tv_sec - log_debug_start, \ tp.tv_sec - log_debug_start, \
tp.tv_nsec / (100 * 1000)); \ tp.tv_nsec / (100 * 1000)); \
} \ } else { \
\
va_start(args, format); \ va_start(args, format); \
__vsyslog(level, format, args); \ __vsyslog(level, format, args); \
va_end(args); \ va_end(args); \
} \
\ \
if (setlogmask(0) & LOG_MASK(LOG_DEBUG) || \ if (setlogmask(0) & LOG_MASK(LOG_DEBUG) || \
setlogmask(0) == LOG_MASK(LOG_EMERG)) { \ setlogmask(0) == LOG_MASK(LOG_EMERG)) { \