Software /
code /
prosody
Comparison
plugins/mod_s2s/mod_s2s.lua @ 9068:95ee62b5afef
mod_s2s: Reduce logging (#776)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 22 Jul 2018 19:45:58 +0200 |
parent | 8919:c46c2942b8fe |
child | 9069:22e5f11c778a |
comparison
equal
deleted
inserted
replaced
9067:89e1bf37ff64 | 9068:95ee62b5afef |
---|---|
108 log("error", "Trying to send a stanza to ourselves??") | 108 log("error", "Trying to send a stanza to ourselves??") |
109 log("error", "Traceback: %s", traceback()); | 109 log("error", "Traceback: %s", traceback()); |
110 log("error", "Stanza: %s", tostring(stanza)); | 110 log("error", "Stanza: %s", tostring(stanza)); |
111 return false; | 111 return false; |
112 else | 112 else |
113 (host.log or log)("debug", "going to send stanza to "..to_host.." from "..from_host); | |
114 -- FIXME | 113 -- FIXME |
115 if host.from_host ~= from_host then | 114 if host.from_host ~= from_host then |
116 log("error", "WARNING! This might, possibly, be a bug, but it might not..."); | 115 log("error", "WARNING! This might, possibly, be a bug, but it might not..."); |
117 log("error", "We are going to send from %s instead of %s", tostring(host.from_host), tostring(from_host)); | 116 log("error", "We are going to send from %s instead of %s", tostring(host.from_host), tostring(from_host)); |
118 end | 117 end |
119 if host.sends2s(stanza) then | 118 if host.sends2s(stanza) then |
120 host.log("debug", "stanza sent over %s", host.type); | |
121 return true; | 119 return true; |
122 end | 120 end |
123 end | 121 end |
124 end | 122 end |
125 end | 123 end |