Fix log levels (swap console/main log).
authorDavin McCall <davmac@davmac.org>
Fri, 24 May 2019 08:58:50 +0000 (18:58 +1000)
committerDavin McCall <davmac@davmac.org>
Fri, 24 May 2019 08:58:50 +0000 (18:58 +1000)
The console should be WARN, main log should be INFO, not the other way
around. Don't want too much spurious stuff going out to the console.

src/dinit-log.cc

index cad22103d49cf60af9db34868fcb4827bd41b6ad..dbdf868760c34a99e41348292263b81a279a189f 100644 (file)
@@ -28,7 +28,7 @@
 extern eventloop_t event_loop;
 
 static bool log_current_line[2];  // Whether the current line is being logged (for console, main log)
-loglevel_t log_level[2] = { loglevel_t::WARN, loglevel_t::INFO };
+loglevel_t log_level[2] = { loglevel_t::INFO, loglevel_t::WARN };
 static bool log_format_syslog[2] = { false, true };
 
 static service_set *services = nullptr;  // Reference to service set