From c35649ccf1f5b7f6b262e7334df169e5dd9264ee Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 9 Jun 2020 16:44:38 +0800 Subject: [PATCH] DEV: Remove Redis noop logging. When Redis drops into readonly mode, it floods the log. The log isn't actionable and we have other means of knowing that an app is in readonly mode. --- lib/discourse_redis.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/discourse_redis.rb b/lib/discourse_redis.rb index b172c02d122..096c86b5744 100644 --- a/lib/discourse_redis.rb +++ b/lib/discourse_redis.rb @@ -172,10 +172,6 @@ class DiscourseRedis yield rescue Redis::CommandError => ex if ex.message =~ /READONLY/ - unless Discourse.recently_readonly? || Rails.env.test? - STDERR.puts "WARN: Redis is in a readonly state. Performed a noop" - end - if !ENV["REDIS_RAILS_FAILOVER"] fallback_handler.verify_master if !fallback_handler.master end