From 16d863c3175fe5934d3fca4973c09b45c12bf183 Mon Sep 17 00:00:00 2001 From: Laura Abbott Date: Mon, 28 Sep 2015 15:39:12 -0700 Subject: 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. --- tools/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/log.c b/tools/log.c index e29a150..3317a35 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) { -- cgit v1.2.1