mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Agent log indexing improvement.
This commit is contained in:
parent
b76cd09dc6
commit
b4af3d30d8
2 changed files with 4 additions and 41 deletions
|
@ -2330,5 +2330,8 @@ function indexAgentErrorLog() {
|
|||
errorIndexCount = errorIndexCount.sort(function (a, b) { return b.c - a.c })
|
||||
|
||||
// Display the results
|
||||
for (var i = 0; i < errorIndexCount.length; i++) { if (errorIndexCount[i].c > 100) { console.log(errorIndexCount[i].c, errorIndexCount[i].m); } }
|
||||
for (var i = 0; i < errorIndexCount.length; i++) {
|
||||
const m = errorIndexCount[i].m;
|
||||
if ((m.indexOf('STUCK') >= 0) || (m.indexOf('FATAL') >= 0)) { console.log(errorIndexCount[i].c, m); }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue