changeset 3731:406b32b50457

mod_warn_legacy_tls: Log debug message for acceptable TLS versions Easy to miss that the module is working as expected and that you're testing with a non-deprecated TLS version.
author Kim Alvefur <zash@zash.se>
date Sun, 03 Nov 2019 13:30:25 +0100
parents ec3eb426271e
children 21cfbdaac767
files mod_warn_legacy_tls/mod_warn_legacy_tls.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_warn_legacy_tls/mod_warn_legacy_tls.lua	Sun Nov 03 13:29:44 2019 +0100
+++ b/mod_warn_legacy_tls/mod_warn_legacy_tls.lua	Sun Nov 03 13:30:25 2019 +0100
@@ -20,5 +20,7 @@
 				session.send(st.message({ from = host, type = "headline", to = session.full_jid }, warning_message:format(protocol)));
 			end
 		end);
+	else
+		module:log("debug", "Using acceptable TLS version: %s", protocol);
 	end
 end);