Changeset

4117:b42ca82b0ea4

loggingmanager: Remove event hook that never fired anyway, and held logfiles open - leave the GC to close them now.
author Matthew Wild <mwild1@gmail.com>
date Tue, 11 Jan 2011 22:40:09 +0000
parents 4115:801725a32c96
children 4118:339b909c15a0 4123:0c9399a66b17
files core/loggingmanager.lua
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/core/loggingmanager.lua	Tue Jan 11 06:18:24 2011 +0000
+++ b/core/loggingmanager.lua	Tue Jan 11 22:40:09 2011 +0000
@@ -266,12 +266,6 @@
 	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