Removed even more unused stuff, nolog intervel function, minor logging cleanup

This commit is contained in:
MrFry 2019-10-26 10:52:28 +02:00
parent 19246d6931
commit ea31d5c0f1
3 changed files with 15 additions and 98 deletions

View file

@ -22,7 +22,8 @@ module.exports = {
GetDateString: GetDateString,
Log: Log,
GetColor: GetColor,
LogReq: LogReq
LogReq: LogReq,
setNoLogReadInterval: setNoLogReadInterval
}
const DELIM = C('green') + '|' + C()
@ -41,10 +42,14 @@ const colors = [
'cyan'
]
let noLogips = utils.ReadFile('./nolog').split('\n')
setInterval(() => {
let noLogips = []
function setNoLogReadInterval () {
noLogips = utils.ReadFile('./nolog').split('\n')
}, 1000 * 60 * 30)
setInterval(() => {
noLogips = utils.ReadFile('./nolog').split('\n')
}, 1000 * 60 * 30)
}
function GetDateString () {
const m = new Date()