Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
12243:73ecfe811526 | 12244:858d40d675ee |
---|---|
473 if not log_level then | 473 if not log_level then |
474 if prosody.opts.verbose then | 474 if prosody.opts.verbose then |
475 log_level = "debug"; | 475 log_level = "debug"; |
476 elseif prosody.opts.quiet then | 476 elseif prosody.opts.quiet then |
477 log_level = "error"; | 477 log_level = "error"; |
478 elseif prosody.opts.silent then | |
479 config.set("*", "log", {}); -- ssssshush! | |
480 return | |
478 end | 481 end |
479 end | 482 end |
480 config.set("*", "log", { { levels = { min = log_level or "info" }, to = "console" } }); | 483 config.set("*", "log", { { levels = { min = log_level or "info" }, to = "console" } }); |
481 end | 484 end |
482 | 485 |