Skip to content

Commit

Permalink
fix: logger
Browse files Browse the repository at this point in the history
  • Loading branch information
izatop committed Nov 21, 2021
1 parent ac62ace commit 4458002
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/unit/src/Runtime/Runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ export class Runtime extends Disposer {
this.logger.debug("watch", signal);
process.on(signal, async () => Runtime.kill(0, `Signal ${signal} has been received`));
}

this.onDispose(Logger);
}

public static kill(code = 0, reason?: unknown): Promise<void> {
Expand All @@ -44,7 +42,7 @@ export class Runtime extends Disposer {

await Promise.allSettled(this.#pending);
await dispose(this);

await dispose(Logger);
if (!Runtime.isTest()) {
process.exit(code);
}
Expand Down

0 comments on commit 4458002

Please sign in to comment.