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

This commit is contained in:
Guo Xiang Tan 2020-06-16 11:53:52 +08:00
parent b08a0d15c4
commit c611f3703c
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 4 additions and 0 deletions

View File

@ -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)