From ddde44eb046ea134888b93df74021a521b737d8a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 11 Jan 2011 22:40:09 +0000 Subject: loggingmanager: Remove event hook that never fired anyway, and held logfiles open - leave the GC to close them now. --- core/loggingmanager.lua | 6 ------ 1 file changed, 6 deletions(-) (limited to 'core') diff --git a/core/loggingmanager.lua b/core/loggingmanager.lua index 40b96d52..0e0ae862 100644 --- a/core/loggingmanager.lua +++ b/core/loggingmanager.lua @@ -266,12 +266,6 @@ function log_sink_types.file(config) end local write, flush = logfile.write, logfile.flush; - prosody.events.add_handler("logging-reloading", function () - if logfile then - logfile:close(); - end - end); - local timestamps = config.timestamps; if timestamps == nil or timestamps == true then -- cgit v1.2.3