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,3 +1,5 @@
import { debugLog } from "./debug-logging.js";
function resolvePanelTheme(settings) {
return settings?.panelTheme || "crimson";
}
@@ -83,7 +85,7 @@ export async function initializePanelBridgeController(runtime) {
});
injectOptionsMenuEntry(runtime);
runtime.console.log("[ST-BME] 操控面板初始化完成");
debugLog("[ST-BME] 操控面板初始化完成");
} catch (panelError) {
runtime.console.error(
"[ST-BME] 操控面板加载失败(核心功能不受影响):",