mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
minor loggin fixes
This commit is contained in:
@@ -184,7 +184,7 @@ if (certsLoaded) {
|
|||||||
httpsServer = https.createServer(certs, app)
|
httpsServer = https.createServer(certs, app)
|
||||||
logger.Log('Listening on port: ' + httpsport + ' (https)')
|
logger.Log('Listening on port: ' + httpsport + ' (https)')
|
||||||
} else {
|
} else {
|
||||||
logger.Log('Https not avaible')
|
logger.Log('Https not avaible', 'yellowbg')
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!process.env.NS_DEVEL) {
|
if (!process.env.NS_DEVEL) {
|
||||||
|
@@ -184,19 +184,18 @@ function parseNoLogFile(newData: string) {
|
|||||||
noLogIds = noLogIds.filter((noLogId) => {
|
noLogIds = noLogIds.filter((noLogId) => {
|
||||||
return noLogId !== ''
|
return noLogId !== ''
|
||||||
})
|
})
|
||||||
Log('\tNo Log user ID-s changed: ' + noLogIds.join(', '))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function setNoLogReadInterval() {
|
function setNoLogReadInterval() {
|
||||||
utils.WatchFile(nologFile, (newData: string) => {
|
utils.WatchFile(nologFile, (newData: string) => {
|
||||||
parseNoLogFile(newData)
|
parseNoLogFile(newData)
|
||||||
|
Log('No Log user ID-s changed: ' + noLogIds.join(', '))
|
||||||
})
|
})
|
||||||
|
|
||||||
parseNoLogFile(utils.ReadFile(nologFile))
|
parseNoLogFile(utils.ReadFile(nologFile))
|
||||||
}
|
}
|
||||||
|
|
||||||
function Load(): void {
|
function Load(): void {
|
||||||
Log('Loading logger...')
|
|
||||||
try {
|
try {
|
||||||
uvData = JSON.parse(utils.ReadFile(uStatsFile))
|
uvData = JSON.parse(utils.ReadFile(uStatsFile))
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Submodule submodules/qmining-data-editor updated: 1446a57c28...b9abbbf03c
Submodule submodules/qmining-page updated: 32522097c0...7f5c1ae7a7
Reference in New Issue
Block a user