django-easy-audit
django-easy-audit copied to clipboard
Token invalidation
I installed easy audit and it seems to have some rather strange effects on my authentication. It is a REST API with Token authentication. However, only for some users, only if "easyaudit" is in INSTALLED_APPS and the middleware is activated, their tokens are instantly invalidated.
Even weirder, if I comment the easy audit stuff from installed apps and middlewares, the user can then properly log in. And if I put everything back I never have issues with that user again, only with others.
The only message I get in the console is No handlers could be found for logger "easyaudit.signals.model_signals"
I know it's a very Byzantine error, but maybe it has happened to others? I'm looking for a sane fix. Will update if I find it :)
Hello @calina-c I can tell you that the log handler error is just telling you that there is no easyaudit logger configured. So easyaudit is trying to log something but no handler will receive it. As far as what it is logging.. you can run in debug and set a break point in the library, or easier just set up a logger and handler in your project for easyaudit.
Please let us know how we can help from there.
@jheld I've switched to another logging package since it took less to switch than to debug this :D Thank you for your answer either way :)