diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-06-07 11:21:51 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-06-07 11:21:51 +0100 |
commit | 29ebeb2da4fb62c8bfb3fe278e7908c07204be78 (patch) | |
tree | e2e2dc556323ef6ea2fd1df41a5e13fcdcbcfe12 /prosodyctl | |
parent | 4682ffbbe965e4c65dbd43862052df2fad3f7a8c (diff) | |
download | prosody-29ebeb2da4fb62c8bfb3fe278e7908c07204be78.tar.gz prosody-29ebeb2da4fb62c8bfb3fe278e7908c07204be78.zip |
prosodyctl: Make log level configurable through PROSODYCTL_LOG_LEVEL (useful for debugging)
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -111,7 +111,7 @@ do 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"); |