Skip to content

Commit

Permalink
Changed request to g
Browse files Browse the repository at this point in the history
  • Loading branch information
k-macmillan committed Dec 2, 2024
1 parent 9ec8dea commit 37f5a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notifications_utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ def filter(self, record):

@classmethod
def _get_api_id(self):
return request.request_id if getattr(request, 'request_id', '') else str(uuid4()).replace('-', '')
return g.request_id if getattr(g, 'request_id', '') else str(uuid4()).replace('-', '')

0 comments on commit 37f5a67

Please sign in to comment.