Changeset

543:cf6e19ea1cbc

Fix logger ids for c2s and s2sout
author Matthew Wild <mwild1@gmail.com>
date Thu, 04 Dec 2008 16:41:32 +0000
parents 542:c9dbfcf21846
children 544:efde848869c5
files core/s2smanager.lua net/xmppclient_listener.lua
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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