From 79f00bcaabfd6d21d263e9915c3cbd7d50335384 Mon Sep 17 00:00:00 2001 From: Daniel Hammerschmidt Date: Tue, 25 Feb 2025 13:51:52 +0100 Subject: [PATCH] fix evaluation of config.settings.agentlogdump (#6812) --- meshcentral.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshcentral.js b/meshcentral.js index b5af6d1b..c2ff568a 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -1656,7 +1656,7 @@ function CreateMeshCentralServer(config, args) { } // Setup agent error log - if ((obj.config) && (obj.config.settings) && (obj.config.settings.agentlogdump != null)) { + if ((obj.config) && (obj.config.settings) && (obj.config.settings.agentlogdump)) { obj.fs.open(obj.path.join(obj.datapath, 'agenterrorlogs.txt'), 'a', function (err, fd) { obj.agentErrorLog = fd; }) }