mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Removed even more unused stuff, nolog intervel function, minor logging cleanup
This commit is contained in:
parent
19246d6931
commit
ea31d5c0f1
3 changed files with 15 additions and 98 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue