mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-06 11:36:50 +03:00
fix: change new log trigger for output
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user