1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added Agent Error Log Fetching.

This commit is contained in:
Ylian Saint-Hilaire 2021-04-17 14:44:19 -07:00
parent 9fb15fdeef
commit 8b2835d40a
7 changed files with 40 additions and 2 deletions

View file

@ -1249,6 +1249,9 @@ function handleServerCommand(data) {
agentFileHttpPendingRequests.push(data);
serverFetchFile();
break;
case 'errorlog': // Return agent error log
try { mesh.SendCommand(JSON.stringify({ action: 'errorlog', log: require('util-agentlog').read(data.startTime) })); } catch (ex) { }
break;
default:
// Unknown action, ignore it.
break;