diff --git a/src/log.c b/src/log.c index 2e183b0..9a04364 100644 --- a/src/log.c +++ b/src/log.c @@ -90,6 +90,8 @@ void log_set_quiet(int enable) { void log_log(int level, const char *file, int line, const char *fmt, ...) { if (level < L.level) { return; + } else if (L.quiet && !L.fp) { + return; } /* Acquire lock */