aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-30 03:05:56 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-30 03:05:56 +0100
commit0188e331a5f9e8cd99c9872e9580f5b7811a5ccc (patch)
tree169a549af80682e0effdff00a5c0414ff734b300 /core/sessionmanager.lua
parent5553cf3c48dbcbdc66fa734ce9371793d42d48bc (diff)
parenta1a1fd2213c069994ddbb9b03e8ae39281deb6d5 (diff)
downloadprosody-0188e331a5f9e8cd99c9872e9580f5b7811a5ccc.tar.gz
prosody-0188e331a5f9e8cd99c9872e9580f5b7811a5ccc.zip
Merge with 0.4
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r--core/sessionmanager.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 52e418cc..68493d87 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -45,7 +45,7 @@ function new_session(conn)
getmetatable(session.trace).__gc = function () open_sessions = open_sessions - 1; end;
end
open_sessions = open_sessions + 1;
- log("info", "open sessions now: ".. open_sessions);
+ log("debug", "open sessions now: ".. open_sessions);
local w = conn.write;
session.send = function (t) w(tostring(t)); end
session.ip = conn.ip();
@@ -53,7 +53,7 @@ function new_session(conn)
end
function destroy_session(session, err)
- (session.log or log)("info", "Destroying session");
+ (session.log or log)("info", "Destroying session for %s (%s@%s)", session.full_jid or "(unknown)", session.username or "(unknown)", session.host or "(unknown)");
-- Send unavailable presence
if session.presence then
@@ -94,6 +94,7 @@ function make_authenticated(session, username)
if session.type == "c2s_unauthed" then
session.type = "c2s";
end
+ session.log("info", "Authenticated as %s@%s", username or "(unknown)", session.host or "(unknown)");
return true;
end
@@ -176,7 +177,7 @@ function streamopened(session, attr)
send(features);
- (session.log or log)("info", "Sent reply <stream:stream> to client");
+ (session.log or log)("debug", "Sent reply <stream:stream> to client");
session.notopen = nil;
end