Details
Details
- Reviewers
- None
- Group Reviewers
Restricted Project - Commits
- rK0bb0414fd53e: Log failure reason
Diff Detail
Diff Detail
- Repository
- rK kolab
- Branch
- master
- Lint
Lint Skipped - Unit
No Test Coverage - Build Status
Buildable 48903 Build 18360: arc lint + arc unit
Event Timeline
Comment Actions
So I don't have to go modify production code to figure out that geolocation somehow blocks the login attempt.
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. |