update debugLog

install-with-shinobicctv-user-instead-of-root
Moe 2020-08-14 19:22:33 -07:00
parent 8481ef2eb6
commit b7cd712ba7
1 changed files with 4 additions and 5 deletions

View File

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