Another small fix, for logging in s2smanager
authorMatthew Wild <mwild1@gmail.com>
Fri, 14 Nov 2008 02:09:20 +0000 (02:09 +0000)
committerMatthew Wild <mwild1@gmail.com>
Fri, 14 Nov 2008 02:09:20 +0000 (02:09 +0000)
core/s2smanager.lua

index fe43b18196c6bae49c8a22c4a0b5a28a057e54b6..f5ad12f981230b798d999c5336f82d7ad14e5194 100644 (file)
@@ -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);