From 8fce29caf7593c82677e35342e41d9e88d8a046b Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 17 Nov 2021 11:38:33 +0530 Subject: [PATCH] Explicitly check for undefined --- src/logging/LogFilter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logging/LogFilter.ts b/src/logging/LogFilter.ts index 9968e63e..5f0e7ae7 100644 --- a/src/logging/LogFilter.ts +++ b/src/logging/LogFilter.ts @@ -42,7 +42,7 @@ export class LogFilter { } } // neither our children or us have a loglevel high enough, filter out. - if (this._min && !Array.isArray(children) && item.logLevel < this._min) { + if (this._min !== undefined && !Array.isArray(children) && item.logLevel < this._min) { return false; } else { return true;