Software / code / prosody
Comparison
core/s2smanager.lua @ 256:c14ddd0912a2
Print out the stanza also
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 14 Nov 2008 02:23:43 +0000 |
| parent | 255:43a9683bcd19 |
| child | 257:762274c98040 |
comparison
equal
deleted
inserted
replaced
| 255:43a9683bcd19 | 256:c14ddd0912a2 |
|---|---|
| 45 -- Queue stanza until we are able to send it | 45 -- Queue stanza until we are able to send it |
| 46 if host.sendq then t_insert(host.sendq, data); | 46 if host.sendq then t_insert(host.sendq, data); |
| 47 else host.sendq = { data }; end | 47 else host.sendq = { data }; end |
| 48 elseif host.type == "local" or host.type == "component" then | 48 elseif host.type == "local" or host.type == "component" then |
| 49 log("error", "Trying to send a stanza to ourselves??") | 49 log("error", "Trying to send a stanza to ourselves??") |
| 50 log("error", "Traceback: "..get_traceback()); | 50 log("error", "Traceback: %s", get_traceback()); |
| 51 log("error", "Stanza: %s", stanza); | |
| 51 else | 52 else |
| 52 (host.log or log)("debug", "going to send stanza to "..to_host.." from "..from_host); | 53 (host.log or log)("debug", "going to send stanza to "..to_host.." from "..from_host); |
| 53 -- FIXME | 54 -- FIXME |
| 54 if hosts[to_host].from_host ~= from_host then | 55 if hosts[to_host].from_host ~= from_host then |
| 55 log("error", "WARNING! This might, possibly, be a bug, but it might not..."); | 56 log("error", "WARNING! This might, possibly, be a bug, but it might not..."); |