mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
prosodyctl: Make log level configurable through PROSODYCTL_LOG_LEVEL (useful for debugging)
This commit is contained in:
parent
4682ffbbe9
commit
29ebeb2da4
1 changed files with 1 additions and 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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue