From eaca2cb04971e15c35c1b85bcc1c54e048b85537 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 15 Jan 2018 17:02:31 +1100 Subject: [PATCH] bypass loud logging --- app/services/notification_emailer.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/services/notification_emailer.rb b/app/services/notification_emailer.rb index e51e18fb0f2..4a6b56f2a2e 100644 --- a/app/services/notification_emailer.rb +++ b/app/services/notification_emailer.rb @@ -74,7 +74,9 @@ class NotificationEmailer def enqueue_private(type, delay = private_delay) if notification.user.user_option.nil? - Rails.logger.warn("Missing user option record for user id: #{notification.user.id}") + # this can happen if we roll back user creation really early + # or delete user + # bypass this pm return end