mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Change logger.debug to logger.warn for PM debug messages
This commit is contained in:
@ -171,7 +171,7 @@ class TopicCreator
|
||||
topic.subtype = TopicSubtype.user_to_user unless topic.subtype
|
||||
|
||||
unless @opts[:target_usernames].present? || @opts[:target_emails].present? || @opts[:target_group_names].present?
|
||||
Rails.logger.debug("Topic PM cannot be created without recipients! opts: #{@opts.inspect}")
|
||||
Rails.logger.warn("Topic PM cannot be created without recipients! opts: #{@opts.inspect}")
|
||||
|
||||
rollback_with!(topic, :no_user_selected)
|
||||
end
|
||||
|
Reference in New Issue
Block a user