From d36cb85f6ae1ccd2c24c0a76a77d3616e3260e42 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Mon, 13 May 2019 15:56:14 +0200 Subject: [PATCH] notification_mailer: send procedure id when reporting a missing logo --- app/mailers/notification_mailer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/mailers/notification_mailer.rb b/app/mailers/notification_mailer.rb index e9e88b4c1..2822d405a 100644 --- a/app/mailers/notification_mailer.rb +++ b/app/mailers/notification_mailer.rb @@ -45,6 +45,7 @@ class NotificationMailer < ApplicationMailer @logo_url = attachments[logo_filename].url rescue StandardError => e # A problem occured when reading logo, maybe the logo is missing and we should clean the procedure to remove logo reference ? + Raven.extra_context(procedure_id: dossier.procedure.id) Raven.capture_exception(e) end end