Software /
code /
prosody
Diff
prosodyctl @ 8881:a0de4fc4acd5
prosodyctl: Make log level configurable through PROSODYCTL_LOG_LEVEL (useful for debugging)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 07 Jun 2018 11:21:51 +0100 |
parent | 8560:489998717387 |
child | 8882:a420b386a72a |
child | 8947:f12cc1d7aa65 |
line wrap: on
line diff
--- a/prosodyctl Thu May 31 10:58:00 2018 +0100 +++ b/prosodyctl Thu Jun 07 11:21:51 2018 +0100 @@ -111,7 +111,7 @@ end end local original_logging_config = config.get("*", "log"); -config.set("*", "log", { { levels = { min="info" }, to = "console" } }); +config.set("*", "log", { { levels = { min = os.getenv("PROSODYCTL_LOG_LEVEL") or "info" }, to = "console" } }); local data_path = config.get("*", "data_path") or CFG_DATADIR or "data"; local custom_plugin_paths = config.get("*", "plugin_paths");