From ba53fa2e21cca6db12dc3309b78a7a2cbfed262b Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 6 Feb 2025 12:40:11 +0000 Subject: mod_c2s: Add debug log when disconnecting all user sessions --- plugins/mod_c2s.lua | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3