From b7cd712ba711c6bbf21aad962c68d45b2ebb5977 Mon Sep 17 00:00:00 2001 From: Moe Date: Fri, 14 Aug 2020 19:22:33 -0700 Subject: [PATCH] update debugLog --- libs/basic.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libs/basic.js b/libs/basic.js index 62187161..b3c0d1ba 100644 --- a/libs/basic.js +++ b/libs/basic.js @@ -229,13 +229,12 @@ module.exports = function(s,config){ } } //system log - s.debugLog = function(q,w,e){ + s.debugLog = function(...args){ if(config.debugLog === true){ - if(!w){w = ''} - if(!e){e = ''} - console.log(s.timeObject().format(),q,w,e) + var logRow = ([s.timeObject().format()]).concat(...args) + console.log(...logRow) if(config.debugLogVerbose === true){ - console.log(new Error()) + console.log(new Error('VERBOSE STACK TRACE, THIS IS NOT AN ')) } } }