Skip to content

Commit

Permalink
Fix log_group_id in developer_mode log
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhitlock committed Nov 5, 2024
1 parent 43607a9 commit 4cce5ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions emails/tests/views_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,7 @@ def test_developer_mode_simulate_complaint(self, mock_logger: Mock) -> None:
if log_group_id is None:
log_group_id = extra["log_group_id"]
assert log_group_id
assert isinstance(log_group_id, str)
else:
assert extra["log_group_id"] == log_group_id
parts[extra["part"]] = extra["notification_gza85"]
Expand Down
2 changes: 1 addition & 1 deletion emails/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ def _log_dev_notification(

notification_gza85 = encode_dict_gza85(notification)
total_parts = notification_gza85.count("\n") + 1
log_group_id = uuid4()
log_group_id = str(uuid4())
for partnum, part in enumerate(notification_gza85.splitlines()):
info_logger.info(
log_message,
Expand Down

0 comments on commit 4cce5ce

Please sign in to comment.