Software /
code /
prosody
Diff
plugins/mod_component.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 | 5298:6d34ed9fce69 |
child | 5316:310c7e5bb906 |
line wrap: on
line diff
--- a/plugins/mod_component.lua Thu Jan 24 00:58:03 2013 +0100 +++ b/plugins/mod_component.lua Thu Jan 24 00:58:17 2013 +0100 @@ -260,7 +260,7 @@ local session = { type = "component_unauthed", conn = conn, send = function (data) return _send(conn, tostring(data)); end }; -- Logging functions -- - local conn_name = "jcp"..tostring(conn):match("[a-f0-9]+$"); + local conn_name = "jcp"..tostring(session):match("[a-f0-9]+$"); session.log = logger.init(conn_name); session.close = session_close;