From 88e23d4cfaeccf3966860c79075c596d35f9c167 Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Tue, 21 Jan 2020 16:11:37 +1000 Subject: [PATCH] Change logger.debug to logger.warn for PM debug messages --- app/controllers/posts_controller.rb | 2 +- lib/topic_creator.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index ba7d7bf0b72..ed71666058a 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -778,7 +778,7 @@ class PostsController < ApplicationController end 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 result.permit! diff --git a/lib/topic_creator.rb b/lib/topic_creator.rb index 5e6d0e0de5d..09adf4c2111 100644 --- a/lib/topic_creator.rb +++ b/lib/topic_creator.rb @@ -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