aboutsummaryrefslogtreecommitdiffstats
path: root/util/logger.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-21 20:29:38 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-21 20:29:38 +0100
commitba9a650e9150e595dbb36dbabff6ad82a29db1b3 (patch)
tree3564eb483fae4282449b3aca207edc99ef7fdbd5 /util/logger.lua
parent68c8c0a6b503af09c2b46f2285f6c7fd17d32f75 (diff)
downloadprosody-ba9a650e9150e595dbb36dbabff6ad82a29db1b3.tar.gz
prosody-ba9a650e9150e595dbb36dbabff6ad82a29db1b3.zip
util.logger: Fix for attempting to call a table
Diffstat (limited to 'util/logger.lua')
-rw-r--r--util/logger.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/logger.lua b/util/logger.lua
index 1a2985b4..4ad42433 100644
--- a/util/logger.lua
+++ b/util/logger.lua
@@ -75,7 +75,7 @@ function make_logger(source_name, level)
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