Changeset

1020:8bf71f8bd0d1

util.logger: Fix for attempting to call a table
author Matthew Wild <mwild1@gmail.com>
date Tue, 21 Apr 2009 20:29:38 +0100
parents 1017:6556a9db3822
children 1021:f9122efeaadd
files util/logger.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/logger.lua	Tue Apr 21 03:38:41 2009 +0100
+++ b/util/logger.lua	Tue Apr 21 20:29:38 2009 +0100
@@ -75,7 +75,7 @@
 	local logger = function (message, ...)
 		if source_handlers then
 			for i = 1,num_source_handlers do
-				if source_handlers(source_name, level, message, ...) == false then
+				if source_handlers[i](source_name, level, message, ...) == false then
 					return;
 				end
 			end