Skip to content

Commit

Permalink
Updated to static method
Browse files Browse the repository at this point in the history
  • Loading branch information
k-macmillan committed Dec 3, 2024
1 parent 93770e3 commit f9cd0ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notifications_utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ def filter(self, record):
record.requestId = RequestIdFilter._get_api_id() if has_request_context() else 'no-request-id'
return record

@classmethod
def _get_api_id(cls) -> str:
@staticmethod
def _get_api_id() -> str:
"""Generate a request_id.
g is a global for this request. It is attached to the Flask and is only persisted for that request.
Expand Down

0 comments on commit f9cd0ca

Please sign in to comment.