diff --git a/src/core/main.c b/src/core/main.c index 3e57f07c422..4ad3bc2c573 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -412,11 +412,16 @@ static int parse_proc_cmdline_item(const char *key, const char *value) { } } else if (streq(key, "quiet") && !value) { + + log_set_max_level(LOG_NOTICE); + if (arg_show_status == _SHOW_STATUS_UNSET) arg_show_status = SHOW_STATUS_AUTO; } else if (streq(key, "debug") && !value) { + log_set_max_level(LOG_DEBUG); + if (detect_container(NULL) > 0) log_set_target(LOG_TARGET_CONSOLE); diff --git a/src/shared/log.c b/src/shared/log.c index 6f17705abfa..9039db34964 100644 --- a/src/shared/log.c +++ b/src/shared/log.c @@ -878,9 +878,6 @@ 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; } } }