Comparison

core/s2smanager.lua @ 253:f2869ded1d37

Another small fix, for logging in s2smanager
author Matthew Wild <mwild1@gmail.com>
date Fri, 14 Nov 2008 02:09:20 +0000
parent 252:a698993bd49b
child 254:6eb3dea1d68b
comparison
equal deleted inserted replaced
252:a698993bd49b 253:f2869ded1d37
43 43
44 -- Queue stanza until we are able to send it 44 -- Queue stanza until we are able to send it
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("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 log("error", "WARNING! This might, possibly, be a bug, but it might not..."); end
51 hosts[to_host].sends2s(data); 51 hosts[to_host].sends2s(data);
52 host.log("debug", "stanza sent over "..hosts[to_host].type); 52 host.log("debug", "stanza sent over "..hosts[to_host].type);
53 end 53 end