Logging again

This commit is contained in:
MrFry 2019-10-13 13:07:28 +02:00
parent 6104d2fb4d
commit c4077c94e5
2 changed files with 3 additions and 2 deletions

@ -1 +1 @@
Subproject commit de7760ea8262febe71e697c697e3c34a87eb10df Subproject commit c935c9e078303b98d61d2d12bca3ab86e2695bdc

View file

@ -69,7 +69,8 @@ function LogReq (req, toFile, sc) {
dl += C('red') 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 logEntry += GetRandomColor(req.url.split('?')[0]) + req.url