aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/startup.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua
index 0d7cb08a..0b62249b 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -84,7 +84,12 @@ end
function startup.init_logging()
-- Initialize logging
- require "core.loggingmanager"
+ local loggingmanager = require "core.loggingmanager"
+ loggingmanager.reload_logging();
+ prosody.events.add_handler("reopen-log-files", function ()
+ loggingmanager.reload_logging();
+ prosody.events.fire_event("logging-reloaded");
+ end);
end
function startup.log_dependency_warnings()