aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-06-07 11:21:51 +0100
committerMatthew Wild <mwild1@gmail.com>2018-06-07 11:21:51 +0100
commit0ff1619ea4e2a6702a3fb70135fb656efd64790b (patch)
treee2e2dc556323ef6ea2fd1df41a5e13fcdcbcfe12 /prosodyctl
parent13d3d974ac771348c02543372a5daf296f3a84c7 (diff)
downloadprosody-0ff1619ea4e2a6702a3fb70135fb656efd64790b.tar.gz
prosody-0ff1619ea4e2a6702a3fb70135fb656efd64790b.zip
prosodyctl: Make log level configurable through PROSODYCTL_LOG_LEVEL (useful for debugging)
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index fcfc4c2e..a28cbd02 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -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");