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, intervalMs: 3000,
onNewLog: (line) => { onNewLog: (line) => {
if (line.includes('[critical]')) { if (line.toLowerCase().includes('[error]') || line.toLowerCase().includes('[fatal]')) {
ui.addNotification('Podkop Critical', E('div', {}, line), 'error'); ui.addNotification('Podkop Error', E('div', {}, line), 'error');
} }
}, },
}, },

View File

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