Mercurial > prosody-hg
diff util/adminstream.lua @ 14030:0afcbea41f22
util.adminstream: Lower log level of disconnect message
Why was this 'info' but the connected is 'debug' ?
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 06 Jan 2026 19:13:20 +0100 |
| parents | 471b676e64eb |
| children | d649d011df45 |
line wrap: on
line diff
--- a/util/adminstream.lua Tue Jan 06 17:37:46 2026 +0100 +++ b/util/adminstream.lua Tue Jan 06 19:13:20 2026 +0100 @@ -254,7 +254,7 @@ function s.listeners.ondisconnect(conn, err) local session = sessions[conn]; if session then - session.log("info", "Admin client disconnected: %s", err or "connection closed"); + session.log("debug", "Admin client disconnected: %s", err or "connection closed"); session.conn = nil; sessions[conn] = nil; s.events.fire_event("disconnected", { session = session }); @@ -327,7 +327,7 @@ end function listeners.ondisconnect(conn, err) --luacheck: ignore 212/conn - client.log("info", "Admin client disconnected: %s", err or "connection closed"); + client.log("debug", "Admin client disconnected: %s", err or "connection closed"); client.conn = nil; client.events.fire_event("disconnected"); end
