diff options
author | Kim Alvefur <zash@zash.se> | 2018-04-05 17:52:37 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-04-05 17:52:37 +0200 |
commit | d723c0752ed3c9e0a6d81acd06db1723a91903a2 (patch) | |
tree | 4242aa68571cdb6dfb9b54b8485e6d37c2727fe2 /util | |
parent | 7d46eacc39c7b44e44faee2d7aed7797cefd4a2b (diff) | |
download | prosody-d723c0752ed3c9e0a6d81acd06db1723a91903a2.tar.gz prosody-d723c0752ed3c9e0a6d81acd06db1723a91903a2.zip |
util.startup: Initialize prosody.log / _G.log here instead of in loggingmanager to reduce dependencies
Diffstat (limited to 'util')
-rw-r--r-- | util/startup.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua index 721af49e..0d7cb08a 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -3,7 +3,8 @@ local startup = {}; local prosody = { events = require "util.events".new() }; -local log = require "util.logger".init("startup"); +local logger = require "util.logger"; +local log = logger.init("startup"); local config = require "core.configmanager"; @@ -195,6 +196,9 @@ function startup.init_global_state() prosody.arg = _G.arg; + _G.log = logger.init("general"); + prosody.log = logger.init("general"); + startup.detect_platform(); startup.detect_installed(); _G.prosody = prosody; |