mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Auth logging prettying
This commit is contained in:
parent
fa4b29efe6
commit
9a6553dbbb
3 changed files with 10 additions and 4 deletions
|
@ -127,6 +127,10 @@ function LogReq (req, toFile, sc) {
|
|||
|
||||
if (req.session && req.session.user) {
|
||||
logEntry += C('cyan') + req.session.user.id + C() + dl
|
||||
} else if (req.session && req.session.isException === true) {
|
||||
logEntry += C('cyan') + 'EX' + C() + dl
|
||||
} else {
|
||||
logEntry += C('red') + 'NOUSER' + C() + dl
|
||||
}
|
||||
|
||||
logEntry += GetRandomColor(req.url.split('?')[0]) + req.url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue