util.logger: Fix for attempting to call a table

Tue, 21 Apr 2009 20:29:38 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 21 Apr 2009 20:29:38 +0100
changeset 1020
8bf71f8bd0d1
parent 1017
6556a9db3822
child 1021
f9122efeaadd

util.logger: Fix for attempting to call a table

util/logger.lua file | annotate | diff | comparison | revisions
--- 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

mercurial