Diff

core/sessionmanager.lua @ 356:8ff322b550a3

Log number of open sessions on session creation
author Matthew Wild <mwild1@gmail.com>
date Thu, 20 Nov 2008 01:32:24 +0000
parent 339:c6446bbfe40c
child 357:17bcecb06420
line wrap: on
line diff
--- a/core/sessionmanager.lua	Thu Nov 20 01:31:15 2008 +0000
+++ b/core/sessionmanager.lua	Thu Nov 20 01:32:24 2008 +0000
@@ -30,6 +30,7 @@
 		getmetatable(session.trace).__gc = function () open_sessions = open_sessions - 1; print("Session got collected, now "..open_sessions.." sessions are allocated") end;
 	end
 	open_sessions = open_sessions + 1;
+	log("info", "open sessions now: ".. open_sessions);
 	local w = conn.write;
 	session.send = function (t) w(tostring(t)); end
 	return session;