Software / code / prosody
Comparison
plugins/mod_s2s/mod_s2s.lua @ 9065:f3adcc3fce8c
sessionmanager, mod_s2s: Bring debug line for outgoing stanzas in line with that for incoming
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 24 Jul 2018 19:07:26 +0200 |
| parent | 9064:93ac83372ac2 |
| child | 9070:21730a3642fe |
comparison
equal
deleted
inserted
replaced
| 9064:93ac83372ac2 | 9065:f3adcc3fce8c |
|---|---|
| 569 local filter = initialize_filters(session); | 569 local filter = initialize_filters(session); |
| 570 local conn = session.conn; | 570 local conn = session.conn; |
| 571 local w = conn.write; | 571 local w = conn.write; |
| 572 | 572 |
| 573 function session.sends2s(t) | 573 function session.sends2s(t) |
| 574 log("debug", "sending: %s", t.top_tag and t:top_tag() or t:match("^[^>]*>?")); | 574 log("debug", "Sending[%s]: %s", session.type, t.top_tag and t:top_tag() or t:match("^[^>]*>?")); |
| 575 if t.name then | 575 if t.name then |
| 576 t = filter("stanzas/out", t); | 576 t = filter("stanzas/out", t); |
| 577 end | 577 end |
| 578 if t then | 578 if t then |
| 579 t = filter("bytes/out", tostring(t)); | 579 t = filter("bytes/out", tostring(t)); |