# HG changeset patch # User Matthew Wild # Date 1228408892 0 # Node ID cf6e19ea1cbca7353d270246f044ba75dd766a07 # Parent c9dbfcf21846edc81e42376389fb8a78f1afa023 Fix logger ids for c2s and s2sout diff -r c9dbfcf21846 -r cf6e19ea1cbc core/s2smanager.lua --- a/core/s2smanager.lua Thu Dec 04 15:48:19 2008 +0000 +++ b/core/s2smanager.lua Thu Dec 04 16:41:32 2008 +0000 @@ -108,7 +108,7 @@ 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 -r c9dbfcf21846 -r cf6e19ea1cbc net/xmppclient_listener.lua --- a/net/xmppclient_listener.lua Thu Dec 04 15:48:19 2008 +0000 +++ b/net/xmppclient_listener.lua Thu Dec 04 16:41:32 2008 +0000 @@ -101,7 +101,7 @@ 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