A platform for community discussion. Free, open, simple.
Change logger.debug to logger.warn for PM debug messages
Martin Brennan88e23d4cfaec
diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rbindex ba7d7bf0b72..ed71666058a 100644--- a/app/controllers/posts_controller.rb+++ b/app/controllers/posts_controller.rb@@ -778,7 +778,7 @@ class PostsController < ApplicationControllerendif 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}")endresult.permit!diff --git a/lib/topic_creator.rb b/lib/topic_creator.rbindex 5e6d0e0de5d..09adf4c2111 100644--- a/lib/topic_creator.rb+++ b/lib/topic_creator.rb@@ -171,7 +171,7 @@ class TopicCreatortopic.subtype = TopicSubtype.user_to_user unless topic.subtypeunless @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