indigo-dc / flaat

FLAsk with Access Tokens - FLAAT
MIT License
11 stars 6 forks source link

Error handling for expired tokens #40

Closed dianagudu closed 3 years ago

dianagudu commented 3 years ago

The line below overwrites the previously logged errors, which are actually useful and more specific.

https://github.com/indigo-dc/flaat/blob/417341d4f79d20fa2f950ea4e92645b3a5c9f93d/flaat/__init__.py#L501

The example I tested with is an expired token. Without this line, the error would be more informative:

ERROR - Incoming request [127.0.0.1:56796--http://localhost:8080/user/get_status] http status: 401 - Token expired for 1540 seconds