From 45bd690c052468343c9bfebba2e0c0f54091e81a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 2 Sep 2021 14:40:26 +0300 Subject: [PATCH] Updated logger function --- src/client/funcs/logger.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/funcs/logger.js b/src/client/funcs/logger.js index 851a8d1..80ce35c 100644 --- a/src/client/funcs/logger.js +++ b/src/client/funcs/logger.js @@ -1,4 +1,5 @@ module.exports = function (area, text){ let date = new Date(); - console.log('[' + area + '] – ' + date.toISOString() + '\n' + text + '\n'); + console.log('[' + area + '] – ' + date.toISOString()); + if(text) console.log(text + '\n'); } \ No newline at end of file