aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-12-04 16:41:32 +0000
committerMatthew Wild <mwild1@gmail.com>2008-12-04 16:41:32 +0000
commitbf3bb39ea3ebf1faff066579a2647e31aa031ace (patch)
tree42645bec5e5eb9e426ffa337faa9d044fd52c559
parent3ba7342f583a1b9a5c1d5d05c5febd2358e81435 (diff)
downloadprosody-bf3bb39ea3ebf1faff066579a2647e31aa031ace.tar.gz
prosody-bf3bb39ea3ebf1faff066579a2647e31aa031ace.zip
Fix logger ids for c2s and s2sout
-rw-r--r--core/s2smanager.lua2
-rw-r--r--net/xmppclient_listener.lua2
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