Changeset

611:7bb91fcddaf8

Fix blank tracebacks for c2s/s2s connections
author Matthew Wild <mwild1@gmail.com>
date Wed, 10 Dec 2008 15:27:01 +0000
parents 610:d98106902f74
children 612:0d44fc0a78f8
files net/xmppclient_listener.lua net/xmppserver_listener.lua
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/net/xmppclient_listener.lua	Tue Dec 09 05:22:43 2008 +0500
+++ b/net/xmppclient_listener.lua	Wed Dec 10 15:27:01 2008 +0000
@@ -47,7 +47,7 @@
 	end
 end
 
-local function handleerr(err) log("error", "Traceback[c2s]:", err, debug.traceback()); end
+local function handleerr(err) log("error", "Traceback[c2s]: %s: %s", tostring(err), debug.traceback()); end
 function stream_callbacks.handlestanza(a, b)
 	xpcall(function () core_process_stanza(a, b) end, handleerr);
 end
--- 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