From e734d218db888ecec33a03dc805b98dd75543efd Mon Sep 17 00:00:00 2001 From: MohammadMahdi Zamanian Date: Sun, 27 Feb 2022 21:37:54 +0330 Subject: [PATCH] fix(logger): fix logger debug scope --- package/logger/src/logger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/logger/src/logger.ts b/package/logger/src/logger.ts index 50a0ed8ee..4d219be4b 100644 --- a/package/logger/src/logger.ts +++ b/package/logger/src/logger.ts @@ -57,7 +57,7 @@ export function createLogger( debug = true; } else if ( debugString.indexOf('*') === debugString.length && - scope.indexOf(debugString.replaceAll('*', '')) !== -1 + scope.indexOf(debugString.replaceAll('*', '')) !== 0 ) { debug = true; }