[systemd-devel] [PATCH] log: honour the kernel's quiet cmdline argument

Ronny Chevalier chevalier.ronny at gmail.com
Tue Jun 3 10:44:03 PDT 2014


It was forgotten in b1e90ec515408aec2702522f6f68c4920b56375b

See https://bugs.freedesktop.org/show_bug.cgi?id=79582
---
 src/shared/log.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/shared/log.c b/src/shared/log.c
index 9039db3..6f17705 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;
                         }
                 }
         }
-- 
1.9.3



More information about the systemd-devel mailing list