You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replaced standard threading with 'asgiref.local' in EasyAuditMiddleware. Also, made EasyAuditMiddleware extend Django's MiddlewareMixin to automatically handle sync and async execution modes.
Github issue: soynatan#291
EasyAuditMiddleware
currently only supports synchronous code, requiring adaptations by Django for async operation.As such, projects using easy audit cannot benefit from async stack as shown by the
django.request
logger:DEBUG:django.request:Asynchronous handler adapted for middleware easyaudit.middleware.easyaudit.EasyAuditMiddleware.
Relevant Django documentation can be found in Django Docs:.
There is a potential simple fix: replacing
threading.local
withasgiref
and usingMiddlewareMixin
.The text was updated successfully, but these errors were encountered: