Not logging request method, keeping pw gen values if they are greater than max

This commit is contained in:
mrfry 2021-04-25 16:45:56 +02:00
parent 68447ba0c8
commit ca645404e5
2 changed files with 5 additions and 6 deletions

View file

@ -137,13 +137,8 @@ function LogReq(req: Request, toFile?: boolean, statusCode?: string): void {
logEntry += dl + logHashed(hostname) + dl
if (toFile) {
logEntry += req.headers['user-agent'] + dl
logEntry += req.method + dl
}
let method = req.method
if (!toFile) {
method = expandWithSpaces(method, 4)
}
logEntry += method + dl
let uid = ''
if (req.session && req.session.user) {