From f30bbd6dcf9c3f00c7106daf40fb6bf513b888c6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 28 Nov 2021 23:07:51 +0100 Subject: util.startup: Teach prosodyctl to be completely --silent --- util/startup.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util/startup.lua') diff --git a/util/startup.lua b/util/startup.lua index 893a4995..f6c931dd 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -475,6 +475,9 @@ function startup.force_console_logging() log_level = "debug"; elseif prosody.opts.quiet then log_level = "error"; + elseif prosody.opts.silent then + config.set("*", "log", {}); -- ssssshush! + return end end config.set("*", "log", { { levels = { min = log_level or "info" }, to = "console" } }); -- cgit v1.2.3