aboutsummaryrefslogtreecommitdiffstats
path: root/util/startup.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-06 12:14:42 +0100
committerKim Alvefur <zash@zash.se>2019-01-06 12:14:42 +0100
commite2369a0bf6d28e192a4e791ebad9c13d1da969da (patch)
tree423af223e3f20ea60b24ebd1686f000ab6ecd89a /util/startup.lua
parent501e9d634bdbbe40cbbedb930f5479a5bd383c33 (diff)
downloadprosody-e2369a0bf6d28e192a4e791ebad9c13d1da969da.tar.gz
prosody-e2369a0bf6d28e192a4e791ebad9c13d1da969da.zip
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.
Diffstat (limited to 'util/startup.lua')
-rw-r--r--util/startup.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/startup.lua b/util/startup.lua
index e92867dc..c101c290 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -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");