Software /
code /
prosody
Diff
core/sessionmanager.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 | 5211:80635a6cb126 |
child | 5377:898454038524 |
line wrap: on
line diff
--- a/core/sessionmanager.lua Thu Jan 24 00:58:03 2013 +0100 +++ b/core/sessionmanager.lua Thu Jan 24 00:58:17 2013 +0100 @@ -54,7 +54,7 @@ end end session.ip = conn:ip(); - local conn_name = "c2s"..tostring(conn):match("[a-f0-9]+$"); + local conn_name = "c2s"..tostring(session):match("[a-f0-9]+$"); session.log = logger.init(conn_name); return session;