chore(sdk): remove diagnostic console.error logs from unpackGroup
This commit is contained in:
parent
83684b4c7b
commit
5368e52f0d
@ -1441,19 +1441,6 @@ export class Package {
|
||||
const parse = (json) => {
|
||||
if (check(json.object, json)) {
|
||||
if (!loader) {
|
||||
// 生产环境定位: 打印关键上下文和调用栈
|
||||
console.error("[Package.unpackGroup] loader is undefined before parse", {
|
||||
uuid,
|
||||
rootGroupUuid,
|
||||
parent,
|
||||
callFunNum: this.callFunNum?.value,
|
||||
hasJson: Boolean(json),
|
||||
childCount: json?.object?.children?.length,
|
||||
currentLoader: this.loader,
|
||||
capturedLoader: loader,
|
||||
stack: new Error("[Package.unpackGroup] missing loader").stack
|
||||
});
|
||||
|
||||
// 防止早退导致 callFunNum 无法归零,进度卡住
|
||||
this.callFunNum.value--;
|
||||
return;
|
||||
@ -1493,18 +1480,6 @@ export class Package {
|
||||
})
|
||||
})
|
||||
} catch (err) {
|
||||
console.error("[Package.unpackGroup] loader.parse threw", {
|
||||
uuid,
|
||||
rootGroupUuid,
|
||||
parent,
|
||||
callFunNum: this.callFunNum?.value,
|
||||
hasJson: Boolean(json),
|
||||
childCount: json?.object?.children?.length,
|
||||
currentLoader: this.loader,
|
||||
capturedLoader: loader,
|
||||
err,
|
||||
stack: err instanceof Error ? err.stack : new Error("[Package.unpackGroup] parse error").stack
|
||||
});
|
||||
throw err;
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user