log: honour the kernel's quiet cmdline argument

It was forgotten in b1e90ec515

See https://bugs.freedesktop.org/show_bug.cgi?id=79582
This commit is contained in:
Ronny Chevalier
2014-06-10 19:16:59 +02:00
committed by Kay Sievers
parent 47a3fa0f76
commit e683212f04
+3
View File
@@ -878,6 +878,9 @@ void log_parse_environment(void) {
if (l == 5 && startswith(w, "debug")) {
log_set_max_level(LOG_DEBUG);
break;
} else if (l == 5 && startswith(w, "quiet")) {
log_set_max_level(LOG_WARNING);
break;
}
}
}