Diff

core/loggingmanager.lua @ 8693:6e24a69b03af

loggingmanager: Hook event for reopening log files instead of config reloaded
author Kim Alvefur <zash@zash.se>
date Sun, 25 Mar 2018 17:02:39 +0200
parent 8555:4f0f5b49bb03
child 8720:dba17a70fd22
line wrap: on
line diff
--- a/core/loggingmanager.lua	Sun Mar 25 17:02:00 2018 +0200
+++ b/core/loggingmanager.lua	Sun Mar 25 17:02:39 2018 +0200
@@ -160,7 +160,7 @@
 end
 
 reload_logging();
-prosody.events.add_handler("config-reloaded", reload_logging);
+prosody.events.add_handler("reopen-log-files", reload_logging);
 
 --- Definition of built-in logging sinks ---