diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-30 23:33:39 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-30 23:33:39 +0100 |
commit | 56500e6e054e18fef1ec47f53e7b58bcc0841e95 (patch) | |
tree | f2c495d6cb140cf6eb1f0b61d21ea3a9dc8ac9ac /plugins/mod_s2s | |
parent | 39cc0ec4510c0e3d80324c7085fa1a938c1f30f8 (diff) | |
download | prosody-56500e6e054e18fef1ec47f53e7b58bcc0841e95.tar.gz prosody-56500e6e054e18fef1ec47f53e7b58bcc0841e95.zip |
mod_s2s: Log from session logger
Helps locating all messages related to a specific session
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index 7700db85..d0176cea 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -764,7 +764,7 @@ function check_auth_policy(event) if must_secure and (session.cert_chain_status ~= "valid" or session.cert_identity_status ~= "valid") then local reason = friendly_cert_error(session); - module:log("warn", "Forbidding insecure connection to/from %s because its certificate %s", host or session.ip or "(unknown host)", reason); + session.log("warn", "Forbidding insecure connection to/from %s because its certificate %s", host or session.ip or "(unknown host)", reason); -- XEP-0178 recommends closing outgoing connections without warning -- but does not give a rationale for this. -- In practice most cases are configuration mistakes or forgotten |