Changeset

2745:5cedad1bcb28

net.xmppserver_listener: Clarify log message (for nil/false)
author Matthew Wild <mwild1@gmail.com>
date Sat, 06 Mar 2010 18:45:09 +0000
parents 2742:6c0a081cd766
children 2746:3b9547fc0bed
files net/xmppserver_listener.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/xmppserver_listener.lua	Fri Mar 05 18:33:28 2010 +0000
+++ b/net/xmppserver_listener.lua	Sat Mar 06 18:45:09 2010 +0000
@@ -176,7 +176,7 @@
 				return; -- Session lives for now
 			end
 		end
-		(session.log or log)("info", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err));
+		(session.log or log)("info", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err or "closed"));
 		s2s_destroy_session(session, err);
 		sessions[conn]  = nil;
 		session = nil;