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 | 78a340ccf79daca7cc45ffc79a9bc614db5048c9 (patch) | |
tree | f2c495d6cb140cf6eb1f0b61d21ea3a9dc8ac9ac /plugins/mod_s2s/mod_s2s.lua | |
parent | 64944464564d65cc215cac3d234a9458414826a9 (diff) | |
download | prosody-78a340ccf79daca7cc45ffc79a9bc614db5048c9.tar.gz prosody-78a340ccf79daca7cc45ffc79a9bc614db5048c9.zip |
mod_s2s: Log from session logger
Helps locating all messages related to a specific session
Diffstat (limited to 'plugins/mod_s2s/mod_s2s.lua')
-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 |