mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix logger filter
was accidetnally replacing the filter instead of appending to it.
This commit is contained in:
parent
d3cdcef36b
commit
56d450a907
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user