aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-14 02:09:20 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-14 02:09:20 +0000
commite110538068747e6595facc504f775c3555d546b8 (patch)
treefa6f6779838de3da13d212f245705a0a11ea2495 /core/s2smanager.lua
parent3349550650708464ff95669a41003f8086181167 (diff)
downloadprosody-e110538068747e6595facc504f775c3555d546b8.tar.gz
prosody-e110538068747e6595facc504f775c3555d546b8.zip
Another small fix, for logging in s2smanager
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index fe43b181..f5ad12f9 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -45,7 +45,7 @@ function send_to_host(from_host, to_host, data)
if host.sendq then t_insert(host.sendq, data);
else host.sendq = { data }; end
else
- host.log("debug", "going to send stanza to "..to_host.." from "..from_host);
+ (host.log or log)("debug", "going to send stanza to "..to_host.." from "..from_host);
-- FIXME
if hosts[to_host].from_host ~= from_host then log("error", "WARNING! This might, possibly, be a bug, but it might not..."); end
hosts[to_host].sends2s(data);