mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 22:27:38 +03:00
mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit traceback function), to make it clearer where an error occured
This commit is contained in:
parent
c981dcb50d
commit
4602591c38
4 changed files with 8 additions and 8 deletions
|
@ -429,7 +429,7 @@ function stream_callbacks.error(session, error, data)
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue