diff --git a/app/jobs/maintenance_job.rb b/app/jobs/maintenance_job.rb index 114ff77b..9d1eb7d0 100644 --- a/app/jobs/maintenance_job.rb +++ b/app/jobs/maintenance_job.rb @@ -29,7 +29,7 @@ class MaintenanceJob < ApplicationJob rescue Net::SMTPServerBusy => e # Algunas direcciones no son válidas, no queremos detener el # envío pero sí enterarnos cuáles son - ExceptionNotifier.notify_exception e + ExceptionNotifier.notify_exception(e, data: { maintenance_id: maintenance_id, email: u[0]) }) end end end diff --git a/app/models/metadata_template.rb b/app/models/metadata_template.rb index e7e2edb8..0d8669d1 100644 --- a/app/models/metadata_template.rb +++ b/app/models/metadata_template.rb @@ -172,7 +172,7 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type, box.decrypt_str value.to_s rescue Lockbox::DecryptionError => e - ExceptionNotifier.notify_exception(e) + ExceptionNotifier.notify_exception(e, data: { site: site.name, post: post.path.absolute, name: name }) I18n.t('lockbox.help.decryption_error') end