From a7d21e416bad3b48c686dd8e4aebe3207e7dbdf8 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 7 Aug 2018 14:49:32 +0200 Subject: [PATCH] Improved notification logging for better support/debugging. --- lib/notification_factory/mailer.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/notification_factory/mailer.rb b/lib/notification_factory/mailer.rb index cbbb76cc7..352d4083c 100644 --- a/lib/notification_factory/mailer.rb +++ b/lib/notification_factory/mailer.rb @@ -107,10 +107,10 @@ returns success = NotificationFactory::Mailer.send( recipient: User.find(123), - subject: 'sime subject', + subject: 'some subject', body: 'some body', content_type: '', # optional, e. g. 'text/html' - message_id: '', # optional + message_id: '', # optional references: ['message-id123', 'message-id456'], # optional attachments: [attachments...], # optional ) @@ -119,7 +119,7 @@ returns def self.send(data) sender = Setting.get('notification_sender') - Rails.logger.info "Send notification to: #{data[:recipient][:email]} (from #{sender})" + Rails.logger.info "Send notification to: #{data[:recipient][:email]} (from:#{sender}/subject:#{data[:subject]})" content_type = 'text/plain' if data[:content_type]