Skip to content

Commit

Permalink
Squash #2137 - Update logging statements to capture notification status
Browse files Browse the repository at this point in the history
  • Loading branch information
MackHalliday committed Dec 5, 2024
1 parent be28d21 commit b813d88
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/va/va_profile/va_profile_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,10 @@ def send_va_profile_notification_status(self, notification_data: dict) -> None:
url = f'{self.va_profile_url}/contact-information-vanotify/notify/status'

self.logger.debug(
'Sending notification status to VA Profile with url: %s | notification: %s',
'Sending notification status to VA Profile with url: %s | notification: %s | notification_status: %s',
url,
notification_data.get('id'),
notification_data.get('status'),
)

# make POST request to VA Profile endpoint for notification statuses
Expand All @@ -390,8 +391,9 @@ def send_va_profile_notification_status(self, notification_data: dict) -> None:
raise

self.logger.info(
'VA Profile response when receiving status of notification %s | status code: %s | json: %s',
'VA Profile response when receiving status of notification_id: %s | notification_status: %s | status code: %s | json: %s',
notification_data.get('id'),
notification_data.get('status'),
response.status_code,
response.json(),
)

0 comments on commit b813d88

Please sign in to comment.