Mercurial > prosody-hg
comparison plugins/mod_s2s/mod_s2s.lua @ 9064:93ac83372ac2
mod_s2s: Reduce logging (#776)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 22 Jul 2018 19:45:58 +0200 |
| parents | 2eaa442d81a6 |
| children | f3adcc3fce8c |
comparison
equal
deleted
inserted
replaced
| 9063:f2a5d8eb04b3 | 9064:93ac83372ac2 |
|---|---|
| 127 log("error", "Trying to send a stanza to ourselves??") | 127 log("error", "Trying to send a stanza to ourselves??") |
| 128 log("error", "Traceback: %s", traceback()); | 128 log("error", "Traceback: %s", traceback()); |
| 129 log("error", "Stanza: %s", tostring(stanza)); | 129 log("error", "Stanza: %s", tostring(stanza)); |
| 130 return false; | 130 return false; |
| 131 else | 131 else |
| 132 (host.log or log)("debug", "going to send stanza to "..to_host.." from "..from_host); | |
| 133 -- FIXME | 132 -- FIXME |
| 134 if host.from_host ~= from_host then | 133 if host.from_host ~= from_host then |
| 135 log("error", "WARNING! This might, possibly, be a bug, but it might not..."); | 134 log("error", "WARNING! This might, possibly, be a bug, but it might not..."); |
| 136 log("error", "We are going to send from %s instead of %s", host.from_host, from_host); | 135 log("error", "We are going to send from %s instead of %s", host.from_host, from_host); |
| 137 end | 136 end |
| 138 if host.sends2s(stanza) then | 137 if host.sends2s(stanza) then |
| 139 host.log("debug", "stanza sent over %s", host.type); | |
| 140 return true; | 138 return true; |
| 141 end | 139 end |
| 142 end | 140 end |
| 143 end | 141 end |
| 144 end | 142 end |
