summaryrefslogtreecommitdiff
path: root/src/shared/log.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-02-04 01:42:49 +0100
committerLennart Poettering <lennart@poettering.net>2015-02-04 01:47:31 +0100
commit5e07a79e84ab8b045b9df1a2719f14fc84471a1d (patch)
tree39d8e28f093575939ced3e9a86d51672212ffa3b /src/shared/log.c
parentb9be39bfb4ed8e43a7c445831131e44be998eb32 (diff)
core: don't reset log level to NOTICE if we get quiet on the kernel cmdline
quiet should really just have an effect on the stuff we dump on the console, not what we log elsewhere. Hence: debug on kernel cmdline → interpreted by every tool, turns up log levels to "debug" everywhere. quiet on kernel cmdline → interpreted only by PID 1 (and obviously the kernel) no alteration of the max log level, but turns off status output. http://lists.freedesktop.org/archives/systemd-devel/2014-December/026271.html
Diffstat (limited to 'src/shared/log.c')
-rw-r--r--src/shared/log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/log.c b/src/shared/log.c
index 9c0156026..03ef018bd 100644
--- a/src/shared/log.c
+++ b/src/shared/log.c
@@ -914,7 +914,9 @@ static int parse_proc_cmdline_item(const char *key, const char *value) {
* The systemd.log_xyz= settings are parsed by all tools, and
* so is "debug".
*
- * However, "quiet" is only parsed by PID 1!
+ * However, "quiet" is only parsed by PID 1, and only turns of
+ * status output to /dev/console, but does not alter the log
+ * level.
*/
if (streq(key, "debug") && !value)