log.c: New log_init() function, called at initial bootstrap

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-07-02 12:34:12 +02:00
1 parent 1036c365b8
commit bd54cf6dee
3 files changed
+17 -4

No files matched your search

+8
View File
@@ -32,6 +32,14 @@
static int loglevel = LOG_NOTICE;
void log_init(int qit, int dbg)
{
if (dbg)
debug = 1;
if (!dbg && qit)
quiet = 1;
}
/* If we enabled terse mode at boot, restore to previous setting at shutdown */
void log_exit(void)
{