# HG changeset patch # User Matthew Wild # Date 1254662695 -3600 # Node ID 42157c0668132836f32b574b8305505cd95244d5 # Parent a8d57d5faec532d43c9f4221125afb8da1587d3c xmppserver_listener: Add logger to s2s sessions diff -r a8d57d5faec5 -r 42157c066813 net/xmppserver_listener.lua --- a/net/xmppserver_listener.lua Sun Oct 04 14:17:54 2009 +0100 +++ b/net/xmppserver_listener.lua Sun Oct 04 14:24:55 2009 +0100 @@ -114,6 +114,12 @@ 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;