Mercurial > prosody-hg
comparison plugins/mod_s2s/mod_s2s.lua @ 5508:b7a8615e2be1
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 |
| parents | 11f08a27c417 |
| children | 3912c9264ef0 |
comparison
equal
deleted
inserted
replaced
| 5507:3a876f02934a | 5508:b7a8615e2be1 |
|---|---|
| 427 session.log("info", "Session closed by remote with error: %s", text); | 427 session.log("info", "Session closed by remote with error: %s", text); |
| 428 session:close(nil, text); | 428 session:close(nil, text); |
| 429 end | 429 end |
| 430 end | 430 end |
| 431 | 431 |
| 432 local function handleerr(err) log("error", "Traceback[s2s]: %s: %s", tostring(err), traceback()); end | 432 local function handleerr(err) log("error", "Traceback[s2s]: %s", traceback(tostring(err), 2)); end |
| 433 function stream_callbacks.handlestanza(session, stanza) | 433 function stream_callbacks.handlestanza(session, stanza) |
| 434 if stanza.attr.xmlns == "jabber:client" then --COMPAT: Prosody pre-0.6.2 may send jabber:client | 434 if stanza.attr.xmlns == "jabber:client" then --COMPAT: Prosody pre-0.6.2 may send jabber:client |
| 435 stanza.attr.xmlns = nil; | 435 stanza.attr.xmlns = nil; |
| 436 end | 436 end |
| 437 stanza = session.filter("stanzas/in", stanza); | 437 stanza = session.filter("stanzas/in", stanza); |
