From fab808b050f2aff4fff6f9b565d8ab5279bf7cca Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 10 Dec 2008 15:27:01 +0000 Subject: Fix blank tracebacks for c2s/s2s connections --- net/xmppclient_listener.lua | 2 +- net/xmppserver_listener.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua index a130a0c1..fb1dcc7d 100644 --- a/net/xmppclient_listener.lua +++ b/net/xmppclient_listener.lua @@ -47,7 +47,7 @@ function stream_callbacks.error(session, error, data) 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 diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua index b8198beb..806357e0 100644 --- a/net/xmppserver_listener.lua +++ b/net/xmppserver_listener.lua @@ -39,7 +39,7 @@ function stream_callbacks.error(session, error, data) 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 -- cgit v1.2.3