Skip to content

Commit

Permalink
Merge pull request #5175 from mozilla/fix-log-group-id-mpp-3932
Browse files Browse the repository at this point in the history
MPP-3942: Fix `log_group_id` in `developer_mode` log
  • Loading branch information
jwhitlock authored Nov 7, 2024
2 parents bf32123 + 8bf7c57 commit bd7b824
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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
6 changes: 4 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bd7b824

Please sign in to comment.