Comparison

core/sessionmanager.lua @ 4993:5243b74a4cbb

Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages
author Matthew Wild <mwild1@gmail.com>
date Mon, 23 Jul 2012 17:32:33 +0100
parent 4981:95c18750b89e
child 4995:47a7ac6508b3
comparison
equal deleted inserted replaced
4992:e79e4d1f75de 4993:5243b74a4cbb
36 if true then 36 if true then
37 session.trace = newproxy(true); 37 session.trace = newproxy(true);
38 getmetatable(session.trace).__gc = function () open_sessions = open_sessions - 1; end; 38 getmetatable(session.trace).__gc = function () open_sessions = open_sessions - 1; end;
39 end 39 end
40 open_sessions = open_sessions + 1; 40 open_sessions = open_sessions + 1;
41 log("debug", "open sessions now: ".. open_sessions); 41 log("debug", "open sessions now: %d", open_sessions);
42 42
43 local filter = initialize_filters(session); 43 local filter = initialize_filters(session);
44 local w = conn.write; 44 local w = conn.write;
45 session.send = function (t) 45 session.send = function (t)
46 if t.name then 46 if t.name then