From 0ff1619ea4e2a6702a3fb70135fb656efd64790b Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 7 Jun 2018 11:21:51 +0100 Subject: [PATCH] prosodyctl: Make log level configurable through PROSODYCTL_LOG_LEVEL (useful for debugging) --- prosodyctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prosodyctl b/prosodyctl index fcfc4c2ea..a28cbd024 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");