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:
parent
9fb15fdeef
commit
8b2835d40a
7 changed files with 40 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue