Diff

net/xmppserver_listener.lua @ 611:7bb91fcddaf8

Fix blank tracebacks for c2s/s2s connections
author Matthew Wild <mwild1@gmail.com>
date Wed, 10 Dec 2008 15:27:01 +0000
parent 604:b6a31e97d018
child 615:4ae3e81513f3
line wrap: on
line diff
--- a/net/xmppserver_listener.lua	Tue Dec 09 05:22:43 2008 +0500
+++ b/net/xmppserver_listener.lua	Wed Dec 10 15:27:01 2008 +0000
@@ -39,7 +39,7 @@
 	end
 end
 
-local function handleerr(err) log("error", "Traceback[s2s]:", err, debug.traceback()); end
+local function handleerr(err) log("error", "Traceback[s2s]: %s: %s", tostring(err), debug.traceback()); end
 function stream_callbacks.handlestanza(a, b)
 	xpcall(function () core_process_stanza(a, b) end, handleerr);
 end