From 850761d443dd759adec9388b58c4e973d2dfa7b5 Mon Sep 17 00:00:00 2001 From: doteric <33552134+doteric@users.noreply.github.com> Date: Wed, 12 Apr 2023 19:15:28 +0200 Subject: [PATCH] misc: add warn log level --- lighthouse-logger/index.js | 3 +++ types/externs.d.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lighthouse-logger/index.js b/lighthouse-logger/index.js index 176aeb20cb74..fa9f667459de 100644 --- a/lighthouse-logger/index.js +++ b/lighthouse-logger/index.js @@ -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; diff --git a/types/externs.d.ts b/types/externs.d.ts index a634d8e3df70..bc458f3823d2 100644 --- a/types/externs.d.ts +++ b/types/externs.d.ts @@ -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. */