diff --git a/src/log.c b/src/log.c index 387fc3b4..1ff1f181 100644 --- a/src/log.c +++ b/src/log.c @@ -39,6 +39,9 @@ void log_init(int dbg) { if (dbg) debug = 1; + + if (debug) + loglevel = LOG_DEBUG; } /* If we enabled terse mode at boot, restore to previous setting at shutdown */