mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 12:52:54 -05:00
Added Agent Error Log Fetching.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user