提交 230cb190 编写于 作者: B Benjamin Pasero

web - log info when unload is triggered

上级 6ee37a60
......@@ -28,6 +28,9 @@ export class BrowserLifecycleService extends AbstractLifecycleService {
}
private onBeforeUnload(): string | null {
const logService = this.logService;
logService.info('[lifecycle] onBeforeUnload triggered');
let veto = false;
// Before Shutdown
......@@ -36,7 +39,7 @@ export class BrowserLifecycleService extends AbstractLifecycleService {
if (value === true) {
veto = true;
} else if (value instanceof Promise && !veto) {
console.warn(new Error('Long running onBeforeShutdown currently not supported in the web'));
logService.error('[lifecycle] Long running onBeforeShutdown currently not supported in the web');
veto = true;
}
},
......@@ -51,7 +54,7 @@ export class BrowserLifecycleService extends AbstractLifecycleService {
// No Veto: continue with Will Shutdown
this._onWillShutdown.fire({
join() {
console.warn(new Error('Long running onWillShutdown currently not supported in the web'));
logService.error('[lifecycle] Long running onWillShutdown currently not supported in the web');
},
reason: ShutdownReason.QUIT
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册