# HG changeset patch # User Kim Alvefur # Date 1638137271 -3600 # Node ID 858d40d675eec1321b1b0f5bc70deaa8d6a0cac4 # Parent 73ecfe81152680dd791eaba2cccd345ee71e578a util.startup: Teach prosodyctl to be completely --silent diff -r 73ecfe811526 -r 858d40d675ee man/prosodyctl.man --- a/man/prosodyctl.man Sun Nov 28 23:07:35 2021 +0100 +++ b/man/prosodyctl.man Sun Nov 28 23:07:51 2021 +0100 @@ -141,6 +141,9 @@ .TP \f[B]\f[CB]--quiet\f[B]\f[R] Reduce log level to only show errors. +.TP +\f[B]\f[CB]--silent\f[B]\f[R] +Disable logging completely, leaving only command output. .SH FILES .TP \f[B]\f[CB]/etc/prosody/prosody.cfg.lua\f[B]\f[R] diff -r 73ecfe811526 -r 858d40d675ee man/prosodyctl.markdown --- a/man/prosodyctl.markdown Sun Nov 28 23:07:35 2021 +0100 +++ b/man/prosodyctl.markdown Sun Nov 28 23:07:51 2021 +0100 @@ -143,6 +143,9 @@ `--quiet` : Reduce log level to only show errors. +`--silent` +: Disable logging completely, leaving only command output. + # FILES `/etc/prosody/prosody.cfg.lua` diff -r 73ecfe811526 -r 858d40d675ee util/startup.lua --- a/util/startup.lua Sun Nov 28 23:07:35 2021 +0100 +++ b/util/startup.lua Sun Nov 28 23:07:51 2021 +0100 @@ -475,6 +475,9 @@ 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" } });