Software /
code /
prosody
Diff
plugins/mod_s2s/mod_s2s.lua @ 5505:0b6a99e6c1b1
mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit traceback function), to make it clearer where an error occured
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 22 Apr 2013 12:35:52 +0100 |
parent | 5474:11f08a27c417 |
child | 5522:3912c9264ef0 |
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua Mon Apr 22 12:25:00 2013 +0100 +++ b/plugins/mod_s2s/mod_s2s.lua Mon Apr 22 12:35:52 2013 +0100 @@ -429,7 +429,7 @@ end end -local function handleerr(err) log("error", "Traceback[s2s]: %s: %s", tostring(err), traceback()); end +local function handleerr(err) log("error", "Traceback[s2s]: %s", traceback(tostring(err), 2)); end function stream_callbacks.handlestanza(session, stanza) if stanza.attr.xmlns == "jabber:client" then --COMPAT: Prosody pre-0.6.2 may send jabber:client stanza.attr.xmlns = nil;