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

index f5ad12f981230b798d999c5336f82d7ad14e5194..e0a6f3ca09c8df713c4e503129f0c3e394c56180 100644 (file)
@@ -47,7 +47,10 @@ function send_to_host(from_host, to_host, data)
                else
                        (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
+                       if hosts[to_host].from_host ~= from_host then
+                               log("error", "WARNING! This might, possibly, be a bug, but it might not...");
+                               log("error", "We are going to send from %s instead of %s", hosts[to_host].from_host, from_host);
+                       end
                        hosts[to_host].sends2s(data);
                        host.log("debug", "stanza sent over "..hosts[to_host].type);
                end