summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2014-06-03 19:44:03 +0200
committerKay Sievers <kay@vrfy.org>2014-06-10 19:16:59 +0200
commite683212f049ac5d3f95fb17300cfa2fd971f78f3 (patch)
treeb32384d9e464f4169d540cee62f648573aab4425
parent47a3fa0f7679521b85f7aeba9e245c52cc7bb2cb (diff)
log: honour the kernel's quiet cmdline argument
It was forgotten in b1e90ec515408aec2702522f6f68c4920b56375b See https://bugs.freedesktop.org/show_bug.cgi?id=79582
Notes
Notes: Backport: bugfix
-rw-r--r--src/shared/log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/log.c b/src/shared/log.c
index 9039db349..6f17705ab 100644
--- a/src/shared/log.c
+++ b/src/shared/log.c
@@ -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;
}
}
}