Module: Blouson::SensitiveMailLogFilter

Defined in:
lib/blouson/sensitive_mail_log_filter.rb

Instance Method Summary collapse

Instance Method Details

#deliver(event) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/blouson/sensitive_mail_log_filter.rb', line 3

def deliver(event)
  e = ActiveSupport::Notifications::Event.new(
    event.name,
    event.time,
    event.end,
    event.transaction_id,
    event.payload.merge(
      to: Blouson::FILTERED,
      mail: "[Blouson::SensitiveMailLogFilter] Mail data is filtered for sensitive data"
    )
  )
  super(e)
end