Software /
code /
prosody
Comparison
plugins/mod_s2s/mod_s2s.lua @ 9069:22e5f11c778a
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 | 9068:95ee62b5afef |
child | 9070:21730a3642fe |
comparison
equal
deleted
inserted
replaced
9068:95ee62b5afef | 9069:22e5f11c778a |
---|---|
539 local filter = initialize_filters(session); | 539 local filter = initialize_filters(session); |
540 local conn = session.conn; | 540 local conn = session.conn; |
541 local w = conn.write; | 541 local w = conn.write; |
542 | 542 |
543 function session.sends2s(t) | 543 function session.sends2s(t) |
544 log("debug", "sending: %s", t.top_tag and t:top_tag() or t:match("^[^>]*>?")); | 544 log("debug", "Sending[%s]: %s", session.type, t.top_tag and t:top_tag() or t:match("^[^>]*>?")); |
545 if t.name then | 545 if t.name then |
546 t = filter("stanzas/out", t); | 546 t = filter("stanzas/out", t); |
547 end | 547 end |
548 if t then | 548 if t then |
549 t = filter("bytes/out", tostring(t)); | 549 t = filter("bytes/out", tostring(t)); |