We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 716ef33 commit bdc448dCopy full SHA for bdc448d
django_datadog_logger/middleware/request_log.py
@@ -12,14 +12,14 @@ def __init__(self, get_response=None):
12
13
def __call__(self, request):
14
response = self.get_response(request)
15
- self.log_request(request, response)
+ self.log_response(request, response)
16
return response
17
18
def process_response(self, request, response):
19
20
21
22
- def log_request(self, request, response):
+ def log_response(self, request, response):
23
log_entry_dict = {"http.status_code": response.status_code}
24
25
if hasattr(request, "request_start_time"):
0 commit comments