diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-12-04 16:41:32 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-12-04 16:41:32 +0000 |
commit | bf3bb39ea3ebf1faff066579a2647e31aa031ace (patch) | |
tree | 42645bec5e5eb9e426ffa337faa9d044fd52c559 | |
parent | 3ba7342f583a1b9a5c1d5d05c5febd2358e81435 (diff) | |
download | prosody-bf3bb39ea3ebf1faff066579a2647e31aa031ace.tar.gz prosody-bf3bb39ea3ebf1faff066579a2647e31aa031ace.zip |
Fix logger ids for c2s and s2sout
-rw-r--r-- | core/s2smanager.lua | 2 | ||||
-rw-r--r-- | net/xmppclient_listener.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 0afb8805..9c7a6008 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -108,7 +108,7 @@ function new_outgoing(from_host, to_host) local log; do - local conn_name = "s2sout"..tostring(conn):match("[a-f0-9]*$"); + local conn_name = "s2sout"..tostring(host_session):match("[a-f0-9]*$"); log = logger_init(conn_name); host_session.log = log; end diff --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua index 8ab3008c..a0d7ea57 100644 --- a/net/xmppclient_listener.lua +++ b/net/xmppclient_listener.lua @@ -101,7 +101,7 @@ function xmppclient.listener(conn, data) local mainlog, log = log; do - local conn_name = tostring(conn):match("[a-f0-9]+$"); + local conn_name = "c2s"..tostring(conn):match("[a-f0-9]+$"); log = logger.init(conn_name); end local print = function (...) log("info", t_concatall({...}, "\t")); end |