Change logger.debug to logger.warn for PM debug messages
This commit is contained in:
parent
bff9880d63
commit
88e23d4cfa
|
@ -778,7 +778,7 @@ class PostsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
if recipients.blank? || result[:target_usernames].blank?
|
if recipients.blank? || result[:target_usernames].blank?
|
||||||
Rails.logger.debug("Missing recipients for PM! result: #{result.inspect} | params: #{params.inspect}")
|
Rails.logger.warn("Missing recipients for PM! result: #{result.inspect} | params: #{params.inspect}")
|
||||||
end
|
end
|
||||||
|
|
||||||
result.permit!
|
result.permit!
|
||||||
|
|
|
@ -171,7 +171,7 @@ class TopicCreator
|
||||||
topic.subtype = TopicSubtype.user_to_user unless topic.subtype
|
topic.subtype = TopicSubtype.user_to_user unless topic.subtype
|
||||||
|
|
||||||
unless @opts[:target_usernames].present? || @opts[:target_emails].present? || @opts[:target_group_names].present?
|
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)
|
rollback_with!(topic, :no_user_selected)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue