Comparison

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
comparison
equal deleted inserted replaced
5305:391b72fede9f 5306:10bc0e2aa55e
52 return w(conn, t); 52 return w(conn, t);
53 end 53 end
54 end 54 end
55 end 55 end
56 session.ip = conn:ip(); 56 session.ip = conn:ip();
57 local conn_name = "c2s"..tostring(conn):match("[a-f0-9]+$"); 57 local conn_name = "c2s"..tostring(session):match("[a-f0-9]+$");
58 session.log = logger.init(conn_name); 58 session.log = logger.init(conn_name);
59 59
60 return session; 60 return session;
61 end 61 end
62 62