fix: change new log trigger for output

This commit is contained in:
divocat
2025-10-20 16:17:57 +03:00
parent 72ad10d737
commit 9d5cdc3e90
2 changed files with 4 additions and 4 deletions

View File

@@ -30,8 +30,8 @@ export function coreService() {
{
intervalMs: 3000,
onNewLog: (line) => {
if (line.includes('[critical]')) {
ui.addNotification('Podkop Critical', E('div', {}, line), 'error');
if (line.toLowerCase().includes('[error]') || line.toLowerCase().includes('[fatal]')) {
ui.addNotification('Podkop Error', E('div', {}, line), 'error');
}
},
},