Comparison

core/s2smanager.lua @ 254:6eb3dea1d68b

Another small fix, for logging in s2smanager
author Matthew Wild <mwild1@gmail.com>
date Fri, 14 Nov 2008 02:12:08 +0000
parent 253:f2869ded1d37
child 255:43a9683bcd19
comparison
equal deleted inserted replaced
253:f2869ded1d37 254:6eb3dea1d68b
45 if host.sendq then t_insert(host.sendq, data); 45 if host.sendq then t_insert(host.sendq, data);
46 else host.sendq = { data }; end 46 else host.sendq = { data }; end
47 else 47 else
48 (host.log or log)("debug", "going to send stanza to "..to_host.." from "..from_host); 48 (host.log or log)("debug", "going to send stanza to "..to_host.." from "..from_host);
49 -- FIXME 49 -- FIXME
50 if hosts[to_host].from_host ~= from_host then log("error", "WARNING! This might, possibly, be a bug, but it might not..."); end 50 if hosts[to_host].from_host ~= from_host then
51 log("error", "WARNING! This might, possibly, be a bug, but it might not...");
52 log("error", "We are going to send from %s instead of %s", hosts[to_host].from_host, from_host);
53 end
51 hosts[to_host].sends2s(data); 54 hosts[to_host].sends2s(data);
52 host.log("debug", "stanza sent over "..hosts[to_host].type); 55 host.log("debug", "stanza sent over "..hosts[to_host].type);
53 end 56 end
54 else 57 else
55 log("debug", "opening a new outgoing connection for this stanza"); 58 log("debug", "opening a new outgoing connection for this stanza");