Comparison

plugins/mod_s2s/mod_s2s.lua @ 6471:95d93c4f9d40

mod_s2s: Capitalize log message
author Kim Alvefur <zash@zash.se>
date Fri, 10 Oct 2014 00:56:53 +0200
parent 6380:4220ffb87b22
child 6473:7c8f58d2b331
child 6600:b1c84d220c40
comparison
equal deleted inserted replaced
6467:77d00a895bbd 6471:95d93c4f9d40
47 47
48 local bouncy_stanzas = { message = true, presence = true, iq = true }; 48 local bouncy_stanzas = { message = true, presence = true, iq = true };
49 local function bounce_sendq(session, reason) 49 local function bounce_sendq(session, reason)
50 local sendq = session.sendq; 50 local sendq = session.sendq;
51 if not sendq then return; end 51 if not sendq then return; end
52 session.log("info", "sending error replies for "..#sendq.." queued stanzas because of failed outgoing connection to "..tostring(session.to_host)); 52 session.log("info", "Sending error replies for "..#sendq.." queued stanzas because of failed outgoing connection to "..tostring(session.to_host));
53 local dummy = { 53 local dummy = {
54 type = "s2sin"; 54 type = "s2sin";
55 send = function(s) 55 send = function(s)
56 (session.log or log)("error", "Replying to to an s2s error reply, please report this! Traceback: %s", traceback()); 56 (session.log or log)("error", "Replying to to an s2s error reply, please report this! Traceback: %s", traceback());
57 end; 57 end;