aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-04 14:24:55 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-04 14:24:55 +0100
commit0cd9b39dbaf932b221328d3c0e91aa19d32e2a53 (patch)
tree15171e77da9d23b39f314f133a8f17e311abe097 /net
parentaf09b7e0e314a40cbfa277439835e83bb22273b0 (diff)
downloadprosody-0cd9b39dbaf932b221328d3c0e91aa19d32e2a53.tar.gz
prosody-0cd9b39dbaf932b221328d3c0e91aa19d32e2a53.zip
xmppserver_listener: Add logger to s2s sessions
Diffstat (limited to 'net')
-rw-r--r--net/xmppserver_listener.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua
index b9296733..92b3b716 100644
--- a/net/xmppserver_listener.lua
+++ b/net/xmppserver_listener.lua
@@ -114,6 +114,12 @@ function xmppserver.listener(conn, data)
session = s2s_new_incoming(conn);
sessions[conn] = session;
+ -- Logging functions --
+
+
+ local conn_name = "s2sin"..tostring(conn):match("[a-f0-9]+$");
+ session.log = logger.init(conn_name);
+
session.log("info", "Incoming s2s connection");
session.reset_stream = session_reset_stream;