DEV: Avoid logging Redis cannot connect error during failover.

DEV: Avoid logging Redis cannot connect error during failover.

Reduce amount of noise in our logs.

diff --git a/config/initializers/002-rails_failover.rb b/config/initializers/002-rails_failover.rb
index 8c03632..87a48be 100644
--- a/config/initializers/002-rails_failover.rb
+++ b/config/initializers/002-rails_failover.rb
@@ -57,7 +57,7 @@ if defined?(RailsFailover::ActiveRecord)
       Discourse::PG_FORCE_READONLY_MODE_KEY
     )
   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")}"
     end
 

GitHub sha: 23778f4b