mirror of
https://github.com/troglobit/finit.git
synced 2026-11-07 16:01:08 +00:00
log_init(): If debug mode enabled, set loglevel LOG_DEBUG
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
e5f47024af
commit
4fa47eaf71
1 file changed
+3
@@ -39,6 +39,9 @@ void log_init(int dbg)
|
|||||||
{
|
{
|
||||||
if (dbg)
|
if (dbg)
|
||||||
debug = 1;
|
debug = 1;
|
||||||
|
|
||||||
|
if (debug)
|
||||||
|
loglevel = LOG_DEBUG;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we enabled terse mode at boot, restore to previous setting at shutdown */
|
/* If we enabled terse mode at boot, restore to previous setting at shutdown */
|
||||||
|
|||||||
Reference in new issue
Block a user