mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-03 07:10:05 -05:00
fix evaluation of config.settings.agentlogdump (#6812)
This commit is contained in:
parent
c55065505b
commit
79f00bcaab
@ -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; })
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user