From 72cd117aab55f1677181a8273b68b6a9d1defa22 Mon Sep 17 00:00:00 2001 From: hkfires <10558748+hkfires@users.noreply.github.com> Date: Mon, 10 Nov 2025 10:40:28 +0800 Subject: [PATCH] fix(logs): exclude all /v0/management/ API entries from viewer --- app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index eb02fcb..dbcc275 100644 --- a/app.js +++ b/app.js @@ -1834,8 +1834,8 @@ class CLIProxyManager { return; } - // 过滤掉 /v0/management/logs 相关的日志 - const filteredLines = lines.filter(line => !line.includes('/v0/management/logs')); + // 过滤掉 /v0/management/ 相关的日志 + const filteredLines = lines.filter(line => !line.includes('/v0/management/')); // 限制前端显示的最大行数 let displayedLines = filteredLines; @@ -1875,8 +1875,8 @@ class CLIProxyManager { const logsTextElement = logsContent.querySelector('.logs-text'); const logsInfoElement = logsContent.querySelector('.logs-info'); - // 过滤掉 /v0/management/logs 相关的日志 - const filteredNewLines = newLines.filter(line => !line.includes('/v0/management/logs')); + // 过滤掉 /v0/management/ 相关的日志 + const filteredNewLines = newLines.filter(line => !line.includes('/v0/management/')); if (filteredNewLines.length === 0) { return; // 如果过滤后没有新日志,直接返回 }