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.
This commit is contained in:
parent
a1c13eb3c6
commit
c35649ccf1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue