Another small fix, for logging in s2smanager

Fri, 14 Nov 2008 02:12:08 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 14 Nov 2008 02:12:08 +0000
changeset 254
6eb3dea1d68b
parent 253
f2869ded1d37
child 255
43a9683bcd19

Another small fix, for logging in s2smanager

core/s2smanager.lua file | annotate | diff | comparison | revisions
--- a/core/s2smanager.lua	Fri Nov 14 02:09:20 2008 +0000
+++ b/core/s2smanager.lua	Fri Nov 14 02:12:08 2008 +0000
@@ -47,7 +47,10 @@
 		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

mercurial