mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Logging improvements
This commit is contained in:
parent
f4519dc84b
commit
7221068cf6
1 changed files with 2 additions and 2 deletions
|
@ -174,9 +174,9 @@ function LogReq(req: Request, toFile?: boolean, statusCode?: string): void {
|
|||
if (!toFile) {
|
||||
uid = expandWithSpaces(uid, 5)
|
||||
}
|
||||
logEntry += C('cyan') + uid + C() + dl
|
||||
logEntry += GetRandomColor(uid.toString()) + uid + C() + dl
|
||||
|
||||
logEntry += GetRandomColor(req.url.split('?')[0]) + req.url
|
||||
logEntry += GetRandomColor(req.url.split('?')[0]) + req.url + C()
|
||||
|
||||
if (statusCode !== undefined) {
|
||||
logEntry += dl + statusCode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue