util.startup: Always reload logging after config (fixes #1284)

This chancged in 6e24a69b03af likely because of confusion about the
`reopen-log-files` event which was fired but never hooked.
This commit is contained in:
Kim Alvefur 2019-01-06 12:14:42 +01:00
parent 9f19a48ee2
commit ce17a974fc

View file

@ -87,6 +87,9 @@ function startup.init_logging()
-- Initialize logging
local loggingmanager = require "core.loggingmanager"
loggingmanager.reload_logging();
prosody.events.add_handler("config-reloaded", function ()
prosody.events.fire_event("reopen-log-files");
end);
prosody.events.add_handler("reopen-log-files", function ()
loggingmanager.reload_logging();
prosody.events.fire_event("logging-reloaded");