Skip to content

Commit bdc448d

Browse files
committed
Rename to log_response
1 parent 716ef33 commit bdc448d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

django_datadog_logger/middleware/request_log.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ def __init__(self, get_response=None):
1212

1313
def __call__(self, request):
1414
response = self.get_response(request)
15-
self.log_request(request, response)
15+
self.log_response(request, response)
1616
return response
1717

1818
def process_response(self, request, response):
19-
self.log_request(request, response)
19+
self.log_response(request, response)
2020
return response
2121

22-
def log_request(self, request, response):
22+
def log_response(self, request, response):
2323
log_entry_dict = {"http.status_code": response.status_code}
2424

2525
if hasattr(request, "request_start_time"):

0 commit comments

Comments
 (0)