mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
Better logging of s2s connections
This commit is contained in:
parent
4d5a2486b5
commit
6db0c3f082
1 changed files with 2 additions and 1 deletions
|
@ -164,8 +164,9 @@ end
|
|||
|
||||
function mark_connected(session)
|
||||
local sendq, send = session.sendq, session.send;
|
||||
session.log("debug", session.direction.." s2s connection "..session.from_host.."->"..session.to_host.." is now complete");
|
||||
if sendq then
|
||||
session.log("debug", "sending queued stanzas across new connection");
|
||||
session.log("debug", "sending queued stanzas across new outgoing connection");
|
||||
for i, data in ipairs(sendq) do
|
||||
send(data);
|
||||
sendq[i] = nil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue