From: Laura Abbott Date: Mon, 28 Sep 2015 22:39:12 +0000 (-0700) Subject: Change default log level X-Git-Tag: v22~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16d863c3175fe5934d3fca4973c09b45c12bf183;p=thirdparty%2Fkmod.git Change default log level The default log level is currently LOG_ERR. Tools can override this default but there is a non-trivial amount of setup that needs to happen before the log level can be changed. Since tools may want to use the warn level for things such as deprecated flags, change the default to LOG_WARNING to ensure messages get printed. --- diff --git a/tools/log.c b/tools/log.c index e29a150d..3317a359 100644 --- a/tools/log.c +++ b/tools/log.c @@ -29,7 +29,7 @@ #define PRIO_MAX_SIZE 32 static bool log_use_syslog; -static int log_priority = LOG_ERR; +static int log_priority = LOG_WARNING; static const char *prio_to_str(char buf[static PRIO_MAX_SIZE], int prio) {