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:
@@ -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
|
||||
|
Reference in New Issue
Block a user