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 | 944d37eaa9d0c977e8b9655e15e031e6977db071 (patch) | |
tree | 33ccd6ff99d44976d7aef85cec1a2b441f8773f8 /util | |
parent | 218854117a4c1b918a0e6e6c3349c8afd2fdc3cc (diff) | |
download | prosody-944d37eaa9d0c977e8b9655e15e031e6977db071.tar.gz prosody-944d37eaa9d0c977e8b9655e15e031e6977db071.zip |
util.startup: Move original_logging_config to a local variable
Diffstat (limited to 'util')
-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 |