diff --git a/src/component/context/LoggerContext.tsx b/src/component/context/LoggerContext.tsx index b70d20ac8..bc77630b1 100644 --- a/src/component/context/LoggerContext.tsx +++ b/src/component/context/LoggerContext.tsx @@ -47,8 +47,8 @@ export function LoggerProvider({ children }: LoggerProviderProps) { const loggerRef = useRef( new FifoLogger({ onChange: (log, logs) => { - if (log && ['warn', 'error', 'fatal'].includes(log.levelLabel)) { - //open the log history automatically if we have warn,error, or fatal + if (log && ['error', 'fatal'].includes(log.levelLabel)) { + //open the log history automatically if we have error or fatal openLogHistory(true); if (log?.error) {