mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +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
|
@ -116,7 +116,7 @@ function stream_callbacks.error(session, error, data)
|
|||
end
|
||||
end
|
||||
|
||||
local function handleerr(err) log("error", "Traceback[c2s]: %s: %s", tostring(err), traceback()); end
|
||||
local function handleerr(err) log("error", "Traceback[c2s]: %s", traceback(tostring(err), 2)); end
|
||||
function stream_callbacks.handlestanza(session, stanza)
|
||||
stanza = session.filter("stanzas/in", stanza);
|
||||
if stanza then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue