projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62c615c
)
Another small fix, for logging in s2smanager
author
Matthew Wild
<mwild1@gmail.com>
Fri, 14 Nov 2008 02:09:20 +0000
(
02:09
+0000)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 14 Nov 2008 02:09:20 +0000
(
02:09
+0000)
core/s2smanager.lua
patch
|
blob
|
history
diff --git
a/core/s2smanager.lua
b/core/s2smanager.lua
index fe43b18196c6bae49c8a22c4a0b5a28a057e54b6..f5ad12f981230b798d999c5336f82d7ad14e5194 100644
(file)
--- a/
core/s2smanager.lua
+++ b/
core/s2smanager.lua
@@
-45,7
+45,7
@@
function send_to_host(from_host, to_host, data)
if host.sendq then t_insert(host.sendq, data);
else host.sendq = { data }; end
else
-
host.log
("debug", "going to send stanza to "..to_host.." from "..from_host);
+
(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
hosts[to_host].sends2s(data);