notification_mailer: send procedure id when reporting a missing logo

This commit is contained in:
Pierre de La Morinerie 2019-05-13 15:56:14 +02:00
parent 97fcbe88a4
commit d36cb85f6a

View file

@ -45,6 +45,7 @@ class NotificationMailer < ApplicationMailer
@logo_url = attachments[logo_filename].url @logo_url = attachments[logo_filename].url
rescue StandardError => e rescue StandardError => e
# A problem occured when reading logo, maybe the logo is missing and we should clean the procedure to remove logo reference ? # 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) Raven.capture_exception(e)
end end
end end