Logging changes

This commit is contained in:
MrFry 2020-03-17 18:18:00 +01:00
parent 6a3593fa6e
commit cc91f4b0da
2 changed files with 5 additions and 3 deletions

View file

@ -109,13 +109,16 @@ const simpleRedirects = [
},
{
from: '/infos',
to: 'http://api.frylabs.net/infos?version=true&motd=true&subjinfo=true'
to: 'http://api.frylabs.net/infos?version=true&motd=true&subjinfo=true',
nolog: true
}
]
simpleRedirects.forEach((redirect) => {
app.get(redirect.from, function (req, res) {
logger.LogReq(req)
if (!redirect.nolog) {
logger.LogReq(req)
}
logger.DebugLog(`Qmining module ${redirect.from} redirect`, 'infos', 1)
res.redirect(`${redirect.to}`)
})