-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: use logger to print status messages (#530)
When cli is run with the output directed to stdout, it may become quite inconvenient for the progress status messages to pop up on the stdout as they are being mixed with the audit formatted results. This change makes both `status` and `statusEnd` events be emitted on `log.events`, and replaces `console.time` and `console.timeEnd` with outputting the timers using lighthouse logger, so that all timer messages go to the same place, usually stderr. In any event, this change makes it easier to control and redirect status messages in the same way all other logging is done.
- Loading branch information
Showing
2 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters