Mercurial > prosody-modules
comparison mod_onions/mod_onions.lua @ 2881:824b0d7fa883
mod_onions: Fix unqualified use of debug.traceback
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 16 Feb 2018 04:36:41 +0100 |
parents | 05ebe377fc90 |
children | 44be2c6087f3 |
comparison
equal
deleted
inserted
replaced
2880:05ebe377fc90 | 2881:824b0d7fa883 |
---|---|
198 if not sendq then return; end | 198 if not sendq then return; end |
199 session.log("info", "Sending error replies for "..#sendq.." queued stanzas because of failed outgoing connection to "..tostring(session.to_host)); | 199 session.log("info", "Sending error replies for "..#sendq.." queued stanzas because of failed outgoing connection to "..tostring(session.to_host)); |
200 local dummy = { | 200 local dummy = { |
201 type = "s2sin"; | 201 type = "s2sin"; |
202 send = function(s) | 202 send = function(s) |
203 (session.log or log)("error", "Replying to to an s2s error reply, please report this! Traceback: %s", traceback()); | 203 (session.log or log)("error", "Replying to to an s2s error reply, please report this! Traceback: %s", debug.traceback()); |
204 end; | 204 end; |
205 dummy = true; | 205 dummy = true; |
206 }; | 206 }; |
207 for i, data in ipairs(sendq) do | 207 for i, data in ipairs(sendq) do |
208 local reply = data[2]; | 208 local reply = data[2]; |