mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Not logging user agent
This commit is contained in:
parent
a9eeaf51b4
commit
1e68625f8d
2 changed files with 6 additions and 9 deletions
|
@ -139,14 +139,11 @@ function LogReq(req: Request, toFile?: boolean, statusCode?: string): void {
|
||||||
GetColor('redbg')
|
GetColor('redbg')
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
logEntry +=
|
logEntry += dl + logHashed(hostname) + dl
|
||||||
dl +
|
if (toFile) {
|
||||||
logHashed(hostname) +
|
logEntry += req.headers['user-agent'] + dl
|
||||||
dl +
|
}
|
||||||
req.headers['user-agent'] +
|
logEntry += req.method + dl
|
||||||
dl +
|
|
||||||
req.method +
|
|
||||||
dl
|
|
||||||
|
|
||||||
if (req.session && req.session.user) {
|
if (req.session && req.session.user) {
|
||||||
logEntry += C('cyan') + req.session.user.id + C() + dl
|
logEntry += C('cyan') + req.session.user.id + C() + dl
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2ae8d7ffb21e8bcc42731e8a4a61fe819f850478
|
Subproject commit 20fb611ee332a34689eea5a9e05cfd473e6195b9
|
Loading…
Add table
Add a link
Reference in a new issue