mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
bypass loud logging
This commit is contained in:
parent
4128f36f52
commit
eaca2cb049
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue