log_init(): If called with debug disbled set (or restore) LOG_NOTICE

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-07-08 00:11:24 +02:00
parent 4fa47eaf71
commit c1bd3961cf
+2
View File
@@ -42,6 +42,8 @@ void log_init(int dbg)
if (debug)
loglevel = LOG_DEBUG;
else
loglevel = LOG_NOTICE;
}
/* If we enabled terse mode at boot, restore to previous setting at shutdown */