fix: logger catch

This commit is contained in:
unanmed 2025-04-17 14:04:35 +08:00
parent b279ad5ba8
commit 425ac1b684

View File

@ -186,7 +186,11 @@ export class Logger {
this.disable();
this.catching = true;
const ret = fn();
this.catching = false;
if (this.catchStack.length === 0) {
this.catching = false;
} else {
this.catching = true;
}
if (before) this.enable();
this.catchStack.pop();