Software /
code /
prosody
Changeset
583:5821eaa80baa
Remove print()s from sessionmanager and s2smanager
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 06 Dec 2008 23:14:39 +0000 |
parents | 582:8eb45a8099c4 |
children | 584:eb0cea29c8d7 |
files | core/s2smanager.lua core/sessionmanager.lua |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/s2smanager.lua Sat Dec 06 23:13:38 2008 +0000 +++ b/core/s2smanager.lua Sat Dec 06 23:14:39 2008 +0000 @@ -94,7 +94,7 @@ local session = { conn = conn, type = "s2sin_unauthed", direction = "incoming" }; if true then session.trace = newproxy(true); - getmetatable(session.trace).__gc = function () open_sessions = open_sessions - 1; print("s2s session got collected, now "..open_sessions.." s2s sessions are allocated") end; + getmetatable(session.trace).__gc = function () open_sessions = open_sessions - 1; end; end open_sessions = open_sessions + 1; local w, log = conn.write, logger_init("s2sin"..tostring(conn):match("[a-f0-9]+$"));
--- a/core/sessionmanager.lua Sat Dec 06 23:13:38 2008 +0000 +++ b/core/sessionmanager.lua Sat Dec 06 23:14:39 2008 +0000 @@ -52,7 +52,7 @@ local session = { conn = conn, priority = 0, type = "c2s_unauthed", conntime = gettime() }; if true then session.trace = newproxy(true); - getmetatable(session.trace).__gc = function () open_sessions = open_sessions - 1; print("Session got collected, now "..open_sessions.." sessions are allocated") end; + getmetatable(session.trace).__gc = function () open_sessions = open_sessions - 1; end; end open_sessions = open_sessions + 1; log("info", "open sessions now: ".. open_sessions);