Skip to content

Commit

Permalink
misc: add warn log level
Browse files Browse the repository at this point in the history
  • Loading branch information
doteric committed Apr 15, 2023
1 parent 03b5387 commit 850761d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lighthouse-logger/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ class Log {
case 'verbose':
debug.enable('LH:*');
break;
case 'warn':
debug.enable('-LH:*, LH:*:warn, LH:*:error');
break;
case 'error':
debug.enable('-LH:*, LH:*:error');
break;
Expand Down
2 changes: 1 addition & 1 deletion types/externs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface Flags extends SharedFlagsSettings {
/** The hostname to use for the debugging protocol, if manually connecting. */
hostname?: string;
/** The level of logging to enable. */
logLevel?: 'silent'|'error'|'info'|'verbose';
logLevel?: 'silent'|'error'|'warn'|'info'|'verbose';
/** The path to the config JSON. */
configPath?: string;
/** Run the specified plugins. */
Expand Down

0 comments on commit 850761d

Please sign in to comment.