mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Logging again
This commit is contained in:
@@ -69,7 +69,8 @@ function LogReq (req, toFile, sc) {
|
||||
dl += C('red')
|
||||
}
|
||||
|
||||
logEntry += dl + req.hostname + dl + req.headers['user-agent'] + dl + req.method + dl
|
||||
const hostname = req.hostname.replace('www.', '').split('.')[0]
|
||||
logEntry += dl + hostname + dl + req.headers['user-agent'] + dl + req.method + dl
|
||||
|
||||
logEntry += GetRandomColor(req.url.split('?')[0]) + req.url
|
||||
|
||||
|
Reference in New Issue
Block a user