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

@ -1308,6 +1308,11 @@ function CreateMeshCentralServer(config, args) {
return;
}
// Setup agent error log
if ((obj.config) && (obj.config.settings) && (obj.config.settings.agentlogdump != null)) {
obj.fs.open(obj.path.join(obj.datapath, 'agenterrorlogs.txt'), 'a', function (err, fd) { obj.agentErrorLog = fd; })
}
// Perform other database cleanup
obj.db.cleanup();