From e2b442ae665ef1da9f10b78ef26605f25ef1bab6 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Sun, 30 Oct 2022 19:43:28 -0700 Subject: [PATCH] Authlog fix. --- meshcentral.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshcentral.js b/meshcentral.js index 20904768..c3d4836e 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -3715,7 +3715,7 @@ function CreateMeshCentralServer(config, args) { try { const d = new Date(), month = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][d.getMonth()]; msg = month + ' ' + d.getDate() + ' ' + obj.common.zeroPad(d.getHours(), 2) + ':' + obj.common.zeroPad(d.getMinutes(), 2) + ':' + d.getSeconds() + ' meshcentral ' + server + '[' + process.pid + ']: ' + msg + ((obj.platform == 'win32') ? '\r\n' : '\n'); - obj.fs.write(obj.authlogfile, str, function (err, written, string) { }); + obj.fs.write(obj.authlogfile, msg, function (err, written, string) { }); } catch (ex) { console.log(ex); } } }