Little tweak for more useful logging of closed s2s sessions
authorMatthew Wild <mwild1@gmail.com>
Sun, 26 Oct 2008 13:14:14 +0000
changeset 169 92768120b717
parent 168 744fafa8b700
child 178 8315cf03f304
Little tweak for more useful logging of closed s2s sessions
core/s2smanager.lua
--- a/core/s2smanager.lua	Sat Oct 25 20:34:21 2008 +0100
+++ b/core/s2smanager.lua	Sun Oct 26 13:14:14 2008 +0000
@@ -175,7 +175,7 @@
 end
 
 function destroy_session(session)
-	(session.log or log)("info", "Destroying session");
+	(session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host));
 	if session.direction == "outgoing" then
 		hosts[session.to_host] = nil;
 	end