Page MenuHomePhorge

Log failure reason
ClosedPublic

Authored by mollekopf on Mon, Sep 2, 2:56 PM.
Tags
None
Referenced Files
F15425487: D4914.id.diff
Sat, Sep 21, 8:00 AM
F15425226: D4914.id.diff
Sat, Sep 21, 6:55 AM
Unknown Object (File)
Thu, Sep 19, 10:40 AM
Unknown Object (File)
Thu, Sep 19, 4:20 AM
Unknown Object (File)
Tue, Sep 17, 12:08 AM
Unknown Object (File)
Mon, Sep 16, 8:29 PM
Unknown Object (File)
Mon, Sep 16, 7:07 PM
Unknown Object (File)
Fri, Sep 13, 4:35 PM
Subscribers

Details

Reviewers
None
Group Reviewers
Restricted Project
Commits
rK0bb0414fd53e: Log failure reason

Diff Detail

Repository
rK kolab
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mollekopf created this revision.

So I don't have to go modify production code to figure out that geolocation somehow blocks the login attempt.

mollekopf added a reviewer: Restricted Project.Mon, Sep 2, 2:57 PM
machniak added inline comments.
src/app/Http/Controllers/API/AuthController.php
86

This message should have some context. Maybe add "Auth: " prefix to it or something.

Also, I'm not sure it makes sense to log anything at this point. Do we want to log user input on every login?

src/app/Http/Controllers/API/AuthController.php
86

Maybe it doesn't need to be a warning. When troubleshooting it's very useful to get an indication what is going wrong, and a generic 401 is rather useless, so in general I think yes, we should be logging something. It may be too noisy by default though.

This revision was not accepted when it landed; it landed in state Needs Review.Fri, Sep 6, 2:18 PM
Closed by commit rK0bb0414fd53e: Log failure reason (authored by mollekopf). · Explain Why
This revision was automatically updated to reflect the committed changes.