From 04daa35b56b1aaa085e948b3e2288a1502fc0df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Sun, 14 Jun 2026 07:58:18 +0400 Subject: [PATCH] =?UTF-8?q?debug:=20=D0=BF=D0=BE=D0=BA=D0=B0=D0=B7=D1=8B?= =?UTF-8?q?=D0=B2=D0=B0=D0=B5=D0=BC=20=D1=81=D0=B5=D1=80=D0=B5=D0=B4=D0=B8?= =?UTF-8?q?=D0=BD=D1=83=20=D0=BA=D0=BB=D1=8E=D1=87=D0=B0=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=D0=B0=20=D0=BE=D0=BF?= =?UTF-8?q?=D0=B5=D1=87=D0=B0=D1=82=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/test_routes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/test_routes.py b/site/test_routes.py index 3e0187e..0f3a133 100644 --- a/site/test_routes.py +++ b/site/test_routes.py @@ -125,7 +125,9 @@ def test(): if any(x in k.upper() for x in ("KEY", "PASS", "SECRET", "TOKEN")): if v: h = hashlib.sha256(v.encode()).hexdigest() - vars_info[k] = f"{v[:4]}...{v[-4:]} (len={len(v)}, hash={h[:8]})" + # Показываем начало, середину и конец для точной идентификации + mid = len(v) // 2 + vars_info[k] = f"{v[:4]}...{v[mid-2:mid+2]}...{v[-4:]} (len={len(v)}, hash={h[:8]})" else: vars_info[k] = "(empty)" elif any(x in k.upper() for x in ("DB_", "LLM_", "FLASK", "PORT")):