From b594f3b843e1d25fa163256594f0936eb511e1aa Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 5 Apr 2018 17:53:51 +0200 Subject: util.startup: Set up event hooks for reloading logging here instead of in loggingmanager to simplify startup dependencies --- core/loggingmanager.lua | 6 ------ 1 file changed, 6 deletions(-) (limited to 'core') 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* -- cgit v1.2.3