diff options
author | Matthew Wild <mwild1@gmail.com> | 2025-02-06 12:40:11 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2025-02-06 12:40:11 +0000 |
commit | ba53fa2e21cca6db12dc3309b78a7a2cbfed262b (patch) | |
tree | e12dffac5fd5f63142fd220e56fd159f12da71de | |
parent | 56c7957a56cc359117506e8a7f5f7fd5d03e660b (diff) | |
download | prosody-ba53fa2e21cca6db12dc3309b78a7a2cbfed262b.tar.gz prosody-ba53fa2e21cca6db12dc3309b78a7a2cbfed262b.zip |
mod_c2s: Add debug log when disconnecting all user sessions
-rw-r--r-- | plugins/mod_c2s.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua index e29ea6a0..a9417368 100644 --- a/plugins/mod_c2s.lua +++ b/plugins/mod_c2s.lua @@ -273,6 +273,7 @@ local function disconnect_user_sessions(reason, leave_resource) if not (hosts[host] and hosts[host].type == "local") then return -- not a local VirtualHost so no sessions end + module:log("debug", "Disconnecting %s sessions of %s@%s (%s)", not leave_resource and "all" or "other", username, host, reason.text); local user = hosts[host].sessions[username]; if user and user.sessions then for r, session in pairs(user.sessions) do |