Software /
code /
prosody
Changeset
8666:57780ba1938f
util.startup: Move original_logging_config to a local variable
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 22 Mar 2018 21:46:55 +0000 |
parents | 8665:4b260a3f8b94 |
children | 8667:a05d36075c6a |
files | util/startup.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/startup.lua Thu Mar 22 21:46:05 2018 +0000 +++ b/util/startup.lua Thu Mar 22 21:46:55 2018 +0000 @@ -9,6 +9,8 @@ local dependencies = require "util.dependencies"; +local original_logging_config; + function startup.read_config() local filenames = {}; @@ -353,7 +355,7 @@ -- 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