From c28f4f0fe2e2e752bade87d041c3b2a887f796d2 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Fri, 24 May 2019 03:23:53 +1000 Subject: [PATCH] Shortened log timestamp --- common/utilities.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/utilities.js b/common/utilities.js index c14f2b3..aabf636 100644 --- a/common/utilities.js +++ b/common/utilities.js @@ -15,7 +15,8 @@ let excluded = [ //errors that should not be logged const log = (msg, ...args) => { if (excluded.indexOf(msg) === -1) { - console.log(`log ${Date()}: ${msg} (${args.toString()})`); + let dateString = Date().replace(/\s\(.*\)/i, ''); //dumb formatting + console.log(`log ${dateString}: ${msg} (${args.toString()})`); } return msg; }