# HG changeset patch # User Matthew Wild # Date 1528366911 -3600 # Node ID a0de4fc4acd5a562a82309e0db3fdcee6e84bbe3 # Parent 9e565d0b17715ac12d4e99c68a1f5010ae332306 prosodyctl: Make log level configurable through PROSODYCTL_LOG_LEVEL (useful for debugging) diff -r 9e565d0b1771 -r a0de4fc4acd5 prosodyctl --- 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");