Diff

util/logger.lua @ 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
parent 1015:9e31e9397cff
child 1523:841d61be198f
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