Software /
code /
prosody
Diff
core/s2smanager.lua @ 5306:10bc0e2aa55e
s2smanager: Generate session names used for logging the same way everywhere
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 24 Jan 2013 00:58:17 +0100 |
parent | 5105:50688a2856f7 |
child | 5349:0d11e393201f |
line wrap: on
line diff
--- a/core/s2smanager.lua Thu Jan 24 00:58:03 2013 +0100 +++ b/core/s2smanager.lua Thu Jan 24 00:58:17 2013 +0100 @@ -35,7 +35,7 @@ getmetatable(session.trace).__gc = function () open_sessions = open_sessions - 1; end; end open_sessions = open_sessions + 1; - session.log = logger_init("s2sin"..tostring(conn):match("[a-f0-9]+$")); + session.log = logger_init("s2sin"..tostring(session):match("[a-f0-9]+$")); incoming_s2s[session] = true; return session; end