-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Failed authentications should be logged to log.Error instead of log.Info #31968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you send a PR? |
I just did |
Precisely not. |
Ok, I see your point in how you define "error" in this case. |
Feature Description
Hi,
it would be great if failed authentications would be logged to ERROR level instead of INFO.
It is in fact an error and the INFO level output can still be a bit much in production, therefore it would be preferable to be able to lower the level to "warn" and still catch the failed logins for fail2ban etc.
If I see it correctly the change need to be done in
routers/web/auth/auth.go
in lines 227-252.What do you think?
Best regards
Daniel
Screenshots
No response
The text was updated successfully, but these errors were encountered: