Skip to content

Commit

Permalink
Flush the logger
Browse files Browse the repository at this point in the history
  • Loading branch information
javagl committed Jun 14, 2024
1 parent 434211d commit 12da838
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cli/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ async function run() {
await runCommand(command, parsedToolArgs, optionArgs);
const afterMs = performance.now();
logger.info(`Total: ${(afterMs - beforeMs).toFixed(3)} ms`);
// This is not part of the Logger API!:
logger.flush();
}

async function runCommand(command: string, toolArgs: any, optionArgs: any) {
Expand Down

0 comments on commit 12da838

Please sign in to comment.