X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Flogger.c;h=026a120260e8de51a3d9bb6a100151617e2fca4d;hb=668750c022a02cc54756316907f1cbbf7d673025;hp=390023bb8b7e62923b2e7730cacb4d557663da0f;hpb=373b0c12d9d0e8a3b449fd18be704e28dd6403e1;p=tinc diff --git a/src/logger.c b/src/logger.c index 390023bb..026a1202 100644 --- a/src/logger.c +++ b/src/logger.c @@ -110,7 +110,7 @@ static void real_logger(debug_t level, int priority, const char *message) { logcontrol = true; - if(level > (c->outcompression >= COMPRESS_NONE ? c->outcompression : debug_level)) { + if(level > (c->log_level != DEBUG_UNSET ? c->log_level : debug_level)) { continue; } @@ -150,7 +150,7 @@ static void sptps_logger(sptps_t *s, int s_errno, const char *format, va_list ap char message[1024]; size_t msglen = sizeof(message); - if(!should_log(DEBUG_ALWAYS)) { + if(!should_log(DEBUG_TRAFFIC)) { return; } @@ -171,7 +171,7 @@ static void sptps_logger(sptps_t *s, int s_errno, const char *format, va_list ap } } - real_logger(DEBUG_ALWAYS, LOG_ERR, message); + real_logger(DEBUG_TRAFFIC, LOG_ERR, message); } void openlogger(const char *ident, logmode_t mode) {