Software /
code /
prosody
Changeset
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 |
parents | 355:e25c8d91b37f |
children | 357:17bcecb06420 |
files | core/sessionmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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;