Add debug log toggle and silence diagnostic logs

This commit is contained in:
Youzini-afk
2026-04-06 11:26:37 +08:00
parent b6187d46e0
commit 8320e3e7f6
23 changed files with 226 additions and 96 deletions

View File

@@ -3,6 +3,7 @@
// 同时叠加任务本地规则,并按任务阶段执行。
import { extension_settings, getContext } from "../../../extensions.js";
import { debugDebug } from "./debug-logging.js";
import { getHostAdapter } from "./host-adapter/index.js";
import {
getActiveTaskProfile,
@@ -236,7 +237,7 @@ function getRegexHost() {
};
}
} catch (error) {
console.debug(
debugDebug(
"[ST-BME] task-regex 读取 regex bridge 失败,回退到 legacy 宿主接口",
error,
);