From 1bed4e8eedd9a501bcf5377be8340c30df68ac1d Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Sun, 24 May 2026 01:28:53 -0700 Subject: [PATCH] fix(gateway): drop text snippet from debounce debug log (CodeQL) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CodeQL py/clear-text-logging-sensitive-data flagged the candidate-accept debug log including event.text[:60]. Log text_len instead — sufficient for debugging burst behavior without surfacing message contents. Co-authored-by: Paulo Nascimento --- gateway/platforms/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/platforms/base.py b/gateway/platforms/base.py index ee706816b9c..307ecf46f4d 100644 --- a/gateway/platforms/base.py +++ b/gateway/platforms/base.py @@ -2773,10 +2773,10 @@ class BasePlatformAdapter(ABC): ) if result: logger.debug( - "[%s] Queue-text debounce candidate accepted: session=%s text=%.60s", + "[%s] Queue-text debounce candidate accepted: session=%s text_len=%d", self.name, getattr(event, "session_key", "?"), - (event.text or "")[:60], + len(event.text or ""), ) return result