Diff

plugins/mod_s2s.lua @ 12494:65316782862f

mod_s2s: Log queued stanzas for which no error reply is produced This would mainly be error stanzas. Good to have some trace of when handling of them are finished.
author Kim Alvefur <zash@zash.se>
date Sat, 07 May 2022 13:10:27 +0200
parent 12493:e9ea5c88def0
child 12602:9184fe3d489a
line wrap: on
line diff
--- a/plugins/mod_s2s.lua	Sat May 07 13:01:49 2022 +0200
+++ b/plugins/mod_s2s.lua	Sat May 07 13:10:27 2022 +0200
@@ -155,6 +155,8 @@
 				reason_text and ("Server-to-server connection failed: "..reason_text) or nil
 			);
 			core_process_stanza(dummy, reply);
+		else
+			(session.log or log)("debug", "Not eligible for bouncing, discarding %s", stanza:top_tag());
 		end
 		sendq[i] = nil;
 	end