aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-03-22 21:46:55 +0000
committerMatthew Wild <mwild1@gmail.com>2018-03-22 21:46:55 +0000
commit2ce0219833fcbe10ed85d5c301adf3c3d5fce3c7 (patch)
tree33ccd6ff99d44976d7aef85cec1a2b441f8773f8 /util
parent96c28157c145b9093e23799987151e1a5f0909c0 (diff)
downloadprosody-2ce0219833fcbe10ed85d5c301adf3c3d5fce3c7.tar.gz
prosody-2ce0219833fcbe10ed85d5c301adf3c3d5fce3c7.zip
util.startup: Move original_logging_config to a local variable
Diffstat (limited to 'util')
-rw-r--r--util/startup.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua
index 45d5c5c2..c4ea8a30 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -9,6 +9,8 @@ local async = require "util.async";
local dependencies = require "util.dependencies";
+local original_logging_config;
+
function startup.read_config()
local filenames = {};
@@ -353,7 +355,7 @@ end
-- Override logging config (used by prosodyctl)
function startup.force_console_logging()
- local original_logging_config = config.get("*", "log");
+ original_logging_config = config.get("*", "log");
config.set("*", "log", { { levels = { min="info" }, to = "console" } });
end