aboutsummaryrefslogtreecommitdiffstats
path: root/util/startup.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-06 12:18:48 +0100
committerKim Alvefur <zash@zash.se>2019-01-06 12:18:48 +0100
commit8321e093388eb2374d56cfe7dd023388c46a3202 (patch)
tree4835386e930acc8100f602f212510efe7f49e11a /util/startup.lua
parent17be1c595df0e62ff28d9e115b83ace74c800db0 (diff)
parent2c8b0b80608ccea6b7cbd157ccc400338c8e5f38 (diff)
downloadprosody-8321e093388eb2374d56cfe7dd023388c46a3202.tar.gz
prosody-8321e093388eb2374d56cfe7dd023388c46a3202.zip
Merge 0.11->trunk
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");