Authlog fix.
Ylian Saint-Hilaire committed
Oct 30, 2022 at 19:43 UTC
e2b442ae665ef1da9f10b78ef26605f25ef1bab6
1 file changed
+1
-1
meshcentral.js
+1
-1
@@ -3715,7 +3715,7 @@ function CreateMeshCentralServer(config, args) {
3715
try {
3716
const d = new Date(), month = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][d.getMonth()];
3717
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');
3718
- obj.fs.write(obj.authlogfile, str, function (err, written, string) { });
3718
+ obj.fs.write(obj.authlogfile, msg, function (err, written, string) { });
3719
} catch (ex) { console.log(ex); }
3720
}
3721
}