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

@@ -1,5 +1,6 @@
import { buildCapabilityStatus, mergeVersionHints } from "./capabilities.js";
import { createContextHostFacade } from "./context.js";
import { debugDebug } from "../debug-logging.js";
const REGEX_API_NAMES = ["getTavernRegexes", "isCharacterTavernRegexesEnabled"];
@@ -36,7 +37,7 @@ function resolveProviderCandidate(candidate, options = {}) {
const resolved = candidate(options);
return isObjectLike(resolved) ? resolved : null;
} catch (error) {
console.debug("[ST-BME] host-adapter/regex provider 解析失败", error);
debugDebug("[ST-BME] host-adapter/regex provider 解析失败", error);
return null;
}
}