File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 11from functools import wraps
22
3- from django_datadog_logger .local import Local , release_local # NOQA
3+ from asgiref .local import Local # NOQA
44
55local = Local ()
66
@@ -31,7 +31,7 @@ def function_wrapper(*args, **kwargs):
3131 local .request = request
3232 return func (* args , ** kwargs )
3333 finally :
34- release_local ( local )
34+ del local . request
3535
3636 return function_wrapper
3737
Original file line number Diff line number Diff line change 22import time
33import uuid
44
5- from django_datadog_logger .local import release_local
65from django_datadog_logger .wsgi import local
76
87
@@ -28,5 +27,5 @@ def __call__(self, request):
2827 local .request = request
2928 response = self .get_response (request )
3029 response ["X-Request-ID" ] = request .request_id
31- release_local ( local )
30+ del local . request
3231 return response
Original file line number Diff line number Diff line change 1- from django_datadog_logger .local import Local # NOQA
1+ from asgiref .local import Local # NOQA
22
33local = Local ()
44
You can’t perform that action at this time.
0 commit comments