Log as debug instead of warning: Blank post detected

This commit is contained in:
Neil Lalonde 2016-03-23 11:44:55 -04:00
parent fa56082f94
commit f36ff3d93b
1 changed files with 2 additions and 2 deletions

View File

@ -202,9 +202,9 @@ class Post < ActiveRecord::Base
if post_type == Post.types[:regular]
if new_cooked != cooked && new_cooked.blank?
Rails.logger.warn("Plugin is blanking out post: #{self.url}\nraw: #{self.raw}")
Rails.logger.debug("Plugin is blanking out post: #{self.url}\nraw: #{self.raw}")
elsif new_cooked.blank?
Rails.logger.warn("Blank post detected post: #{self.url}\nraw: #{self.raw}")
Rails.logger.debug("Blank post detected post: #{self.url}\nraw: #{self.raw}")
end
end