Skip to content

Commit

Permalink
Fix issue with logger function
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault committed Jan 19, 2024
1 parent 53e44e0 commit 03e06cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion envergo/evaluations/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ def handle_mail_event(sender, event, esp_name, **kwargs):
# Log the click ("self declaration" button only)
if event_name == "clicked":
raw_event = event.esp_event
logger.info("Clicked event", raw_event)
import json

logger.info(f"Clicked event {json.dumps(raw_event)}")
metadata = {
"reference": regulatory_notice_log.evaluation.reference,
"message_id": message_id,
Expand Down

0 comments on commit 03e06cd

Please sign in to comment.