mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 22:30:38 +08:00
Add debug log toggle and silence diagnostic logs
This commit is contained in:
3
graph.js
3
graph.js
@@ -14,6 +14,7 @@ import {
|
||||
normalizeNodeMemoryScope,
|
||||
isSameLatestScopeBucket,
|
||||
} from "./memory-scope.js";
|
||||
import { debugLog } from "./debug-logging.js";
|
||||
|
||||
/**
|
||||
* 图状态版本号
|
||||
@@ -546,7 +547,7 @@ export function deserializeGraph(json) {
|
||||
}
|
||||
|
||||
if (data.version < GRAPH_VERSION) {
|
||||
console.log(`[ST-BME] 图版本迁移 v${data.version} → v${GRAPH_VERSION}`);
|
||||
debugLog(`[ST-BME] 图版本迁移 v${data.version} → v${GRAPH_VERSION}`);
|
||||
|
||||
if (data.version < 2 && data.edges) {
|
||||
for (const edge of data.edges) {
|
||||
|
||||
Reference in New Issue
Block a user