Added colors

This commit is contained in:
MrFry 2019-10-07 17:26:43 +02:00
parent f7ae8bc46a
commit 9b9a67d8df

View file

@ -32,6 +32,14 @@ const locLogFile = './stats/logs'
const logFile = '/nlogs/nlogs'
const allLogFile = '/nlogs/log'
const colors = [
'red',
'green',
'yellow',
'blue',
'cyan'
]
function GetDateString () {
const m = new Date()
return m.getFullYear() + '/' +
@ -83,14 +91,6 @@ function LogReq (req, toFile, sc) {
}
}
const colors = [
'red',
'green',
'yellow',
'blue',
'cyan'
]
function GetRandomColor (ip) {
if (!ip) {
return 'red'