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 ')) } } }