mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
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
|
yield
|
||||||
rescue Redis::CommandError => ex
|
rescue Redis::CommandError => ex
|
||||||
if ex.message =~ /READONLY/
|
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"]
|
if !ENV["REDIS_RAILS_FAILOVER"]
|
||||||
fallback_handler.verify_master if !fallback_handler.master
|
fallback_handler.verify_master if !fallback_handler.master
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user