From 56d450a907b194cdaf355d6aaaec4d46524d14d5 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 20 Aug 2024 21:01:07 +1000 Subject: [PATCH] fix(ui): fix logger filter was accidetnally replacing the filter instead of appending to it. --- invokeai/frontend/web/src/app/logging/useLogger.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/invokeai/frontend/web/src/app/logging/useLogger.ts b/invokeai/frontend/web/src/app/logging/useLogger.ts index f292f1f929..c86844f5ed 100644 --- a/invokeai/frontend/web/src/app/logging/useLogger.ts +++ b/invokeai/frontend/web/src/app/logging/useLogger.ts @@ -20,8 +20,7 @@ export const useLogger = (namespace: LogNamespace) => { // Use a filter to show only logs of the given level let filter = `context.logLevel:>=${LOG_LEVEL_MAP[logLevel]}`; if (logNamespaces.length > 0) { - filter += ' AND '; - filter = `(${logNamespaces.map((ns) => `context.namespace:${ns}`).join(' OR ')})`; + filter += ` AND (${logNamespaces.map((ns) => `context.namespace:${ns}`).join(' OR ')})`; } else { filter += ' AND context.namespace:undefined'; }