summaryrefslogtreecommitdiff
path: root/src/shared/log.c
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 /src/shared/log.c
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
Diffstat (limited to 'src/shared/log.c')
-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 9039db3496..6f17705abf 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;
}
}
}