mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Not logging request method, keeping pw gen values if they are greater than max
This commit is contained in:
parent
68447ba0c8
commit
ca645404e5
2 changed files with 5 additions and 6 deletions
|
@ -264,6 +264,10 @@ function setup(data: SubmoduleData): any {
|
|||
return
|
||||
}
|
||||
|
||||
if (user.avaiblePWRequests >= maxPWCount) {
|
||||
return
|
||||
}
|
||||
|
||||
logger.Log(
|
||||
`Setting avaible PW-s for user #${user.id}: ${user.avaiblePWRequests} -> ${maxPWCount}`,
|
||||
logger.GetColor('cyan')
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue