Software /
code /
prosody
Diff
util/startup.lua @ 12244:858d40d675ee
util.startup: Teach prosodyctl to be completely --silent
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 28 Nov 2021 23:07:51 +0100 |
parent | 12243:73ecfe811526 |
child | 12274:10447f940fec |
line wrap: on
line diff
--- 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" } });