From 59e76316947f78525fee11451d76472e22bce115 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Thu, 3 Feb 2022 11:57:32 -0800 Subject: [PATCH] Improved log.txt logging, #3589 --- meshcentral.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshcentral.js b/meshcentral.js index 0b4be812..d3350b51 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -3128,7 +3128,7 @@ function CreateMeshCentralServer(config, args) { if (obj.xxLogFile != null) { try { if (obj.xxLogDateStr != d.toLocaleDateString()) { obj.xxLogDateStr = d.toLocaleDateString(); obj.fs.writeSync(obj.xxLogFile, '---- ' + d.toLocaleDateString() + ' ----\r\n'); } - obj.fs.writeSync(obj.xxLogFile, new Date().toLocaleTimeString() + ' - ' + source + ': ' + Array.prototype.slice.call(...args).join('') + '\r\n'); + obj.fs.writeSync(obj.xxLogFile, new Date().toLocaleTimeString() + ' - ' + source + ': ' + args.join(', ') + '\r\n'); } catch (ex) { } } }