aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/action_cable
diff options
context:
space:
mode:
authorJeremy Daer <jeremydaer@gmail.com>2016-04-21 11:20:11 -0700
committerJeremy Daer <jeremydaer@gmail.com>2016-04-21 11:20:11 -0700
commit2080bfdb162fcafaffb68b95bfaa85d14b951adc (patch)
tree0805cb04af5780fc689e5ecc3aacc89928300be3 /actioncable/lib/action_cable
parent1f47c4b0df01926c2237ac0777547a9d7802adbb (diff)
parente7f921d4050fc81652748ecdfa0b0f5378c5c723 (diff)
downloadrails-2080bfdb162fcafaffb68b95bfaa85d14b951adc.tar.gz
rails-2080bfdb162fcafaffb68b95bfaa85d14b951adc.tar.bz2
rails-2080bfdb162fcafaffb68b95bfaa85d14b951adc.zip
Merge pull request #24676 from vipulnsward/log-ac-failed-states
Log if redis connection is in stale/failed state.
Diffstat (limited to 'actioncable/lib/action_cable')
-rw-r--r--actioncable/lib/action_cable/subscription_adapter/evented_redis.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actioncable/lib/action_cable/subscription_adapter/evented_redis.rb b/actioncable/lib/action_cable/subscription_adapter/evented_redis.rb
index 256876cf30..4735a4bfa8 100644
--- a/actioncable/lib/action_cable/subscription_adapter/evented_redis.rb
+++ b/actioncable/lib/action_cable/subscription_adapter/evented_redis.rb
@@ -53,6 +53,10 @@ module ActionCable
redis.on(:reconnect_failed) do
@logger.error "[ActionCable] Redis reconnect failed."
end
+
+ redis.on(:failed) do
+ @logger.error "[ActionCable] Redis connection has failed."
+ end
end
end
end