diff options
author | Kim Alvefur <zash@zash.se> | 2018-04-05 17:53:51 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-04-05 17:53:51 +0200 |
commit | b0be3682afbeaa928a1fa760c39342902cbc15ca (patch) | |
tree | 6c3687a05a423518c86f5c43cfcfb2a76355230a /core | |
parent | d723c0752ed3c9e0a6d81acd06db1723a91903a2 (diff) | |
download | prosody-b0be3682afbeaa928a1fa760c39342902cbc15ca.tar.gz prosody-b0be3682afbeaa928a1fa760c39342902cbc15ca.zip |
util.startup: Set up event hooks for reloading logging here instead of in loggingmanager to simplify startup dependencies
Diffstat (limited to 'core')
-rw-r--r-- | core/loggingmanager.lua | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/loggingmanager.lua b/core/loggingmanager.lua index 23aa8e64..deaeddc3 100644 --- a/core/loggingmanager.lua +++ b/core/loggingmanager.lua @@ -18,7 +18,6 @@ local getstyle, getstring = require "util.termcolours".getstyle, require "util.t local config = require "core.configmanager"; local logger = require "util.logger"; -local prosody = prosody; local _ENV = nil; -- luacheck: std none @@ -152,13 +151,8 @@ local function reload_logging() for name, sink_maker in pairs(old_sink_types) do log_sink_types[name] = sink_maker; end - - prosody.events.fire_event("logging-reloaded"); end -reload_logging(); -prosody.events.add_handler("reopen-log-files", reload_logging); - --- Definition of built-in logging sinks --- -- Null sink, must enter log_sink_types *first* |