mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Auth system
This commit is contained in:
parent
52778532dc
commit
9435cc6533
14 changed files with 637 additions and 23 deletions
|
@ -43,13 +43,6 @@ const statFile = 'stats/stats'
|
|||
const vStatFile = 'stats/vstats'
|
||||
const nologFile = './nolog'
|
||||
|
||||
const writeInterval = 10
|
||||
|
||||
let data = {}
|
||||
let vData = {}
|
||||
let writes = 0
|
||||
let debugLevel = 0
|
||||
|
||||
const colors = [
|
||||
'green',
|
||||
'red',
|
||||
|
@ -59,6 +52,14 @@ const colors = [
|
|||
'cyan'
|
||||
]
|
||||
|
||||
const writeInterval = 10
|
||||
const debugLevel = parseInt(process.env.NS_LOGLEVEL) || 0
|
||||
Log('Loglevel is: ' + debugLevel)
|
||||
|
||||
let data = {}
|
||||
let vData = {}
|
||||
let writes = 0
|
||||
|
||||
let noLogips = []
|
||||
|
||||
function GetDateString () {
|
||||
|
@ -158,10 +159,7 @@ function setNoLogReadInterval () {
|
|||
parseNoLogFile(utils.ReadFile(nologFile))
|
||||
}
|
||||
|
||||
function Load (debugLvl) {
|
||||
if (debugLvl) {
|
||||
debugLevel = debugLvl
|
||||
}
|
||||
function Load () {
|
||||
Log('Loading logger...')
|
||||
try {
|
||||
var prevData = utils.ReadFile(statFile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue