Minor logging improvement, open all on legacy page

This commit is contained in:
MrFry 2019-10-07 15:44:00 +02:00
parent 4e0bea8e32
commit 38fc65b572
3 changed files with 22 additions and 0 deletions

View file

@ -60,6 +60,10 @@ function LogReq (req, toFile, sc) {
if (sc !== undefined && sc === 404) { logEntry += DELIM + sc }
let color = GetColor('green')
if (req.url.includes('lred')) {
color = GetColor('red')
}
if (req.url.toLowerCase().includes('isadding')) { color = GetColor('yellow') }
if (!toFile) {
Log(logEntry, color)