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,
|
||||
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');
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user