mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Avoid logging Redis cannot connect error during failover.
Reduce amount of noise in our logs.
This commit is contained in:
parent
de5245631b
commit
23778f4bfd
@ -57,7 +57,7 @@ if defined?(RailsFailover::ActiveRecord)
|
|||||||
Discourse::PG_FORCE_READONLY_MODE_KEY
|
Discourse::PG_FORCE_READONLY_MODE_KEY
|
||||||
)
|
)
|
||||||
rescue => e
|
rescue => e
|
||||||
if e.is_a?(Redis::CannotConnectError)
|
if !e.is_a?(Redis::CannotConnectError)
|
||||||
Rails.logger.warn "#{e.class} #{e.message}: #{e.backtrace.join("\n")}"
|
Rails.logger.warn "#{e.class} #{e.message}: #{e.backtrace.join("\n")}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user