DEV: Don't use logster when logging in Redis failover.

DEV: Don’t use logster when logging in Redis failover.

diff --git a/config/initializers/002-rails_failover.rb b/config/initializers/002-rails_failover.rb
index a7529a0..40809c1 100644
--- a/config/initializers/002-rails_failover.rb
+++ b/config/initializers/002-rails_failover.rb
@@ -14,6 +14,10 @@ if defined?(RailsFailover::Redis)
     Discourse.request_refresh!
     MessageBus.keepalive_interval = message_bus_keepalive_interval
   end
+
+  if Rails.logger.respond_to? :chained
+    RailsFailover::Redis.logger = Rails.logger.chained.first
+  end
 end
 
 if defined?(RailsFailover::ActiveRecord)

GitHub sha: c611f370