diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-03-22 21:46:55 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-03-22 21:46:55 +0000 |
commit | 2ce0219833fcbe10ed85d5c301adf3c3d5fce3c7 (patch) | |
tree | 33ccd6ff99d44976d7aef85cec1a2b441f8773f8 /util/startup.lua | |
parent | 96c28157c145b9093e23799987151e1a5f0909c0 (diff) | |
download | prosody-2ce0219833fcbe10ed85d5c301adf3c3d5fce3c7.tar.gz prosody-2ce0219833fcbe10ed85d5c301adf3c3d5fce3c7.zip |
util.startup: Move original_logging_config to a local variable
Diffstat (limited to 'util/startup.lua')
-rw-r--r-- | util/startup.lua | 4 |
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 |