diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/startup.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua index 5db1c51a..893a4995 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -470,7 +470,13 @@ end function startup.force_console_logging() original_logging_config = config.get("*", "log"); local log_level = os.getenv("PROSODYCTL_LOG_LEVEL"); - if not log_level and prosody.opts.verbose then log_level = "debug"; end + if not log_level then + if prosody.opts.verbose then + log_level = "debug"; + elseif prosody.opts.quiet then + log_level = "error"; + end + end config.set("*", "log", { { levels = { min = log_level or "info" }, to = "console" } }); end |