aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-20 01:32:24 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-20 01:32:24 +0000
commit6a333d94d6779850451ca74249906ebf53c5f369 (patch)
treeb634ac283fd7206fece6057ca3ae3e12c7fde4fa /core
parent572a0324a3b05d78028d446a1ba2f1e3280046cd (diff)
downloadprosody-6a333d94d6779850451ca74249906ebf53c5f369.tar.gz
prosody-6a333d94d6779850451ca74249906ebf53c5f369.zip
Log number of open sessions on session creation
Diffstat (limited to 'core')
-rw-r--r--core/sessionmanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 7a0d6a49..8be7bdec 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -30,6 +30,7 @@ function new_session(conn)
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;