aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-04-21 22:13:55 +0530
committerVipul A M <vipulnsward@gmail.com>2016-04-21 22:13:55 +0530
commite7f921d4050fc81652748ecdfa0b0f5378c5c723 (patch)
tree7cd6a7e32a96cd816dfadd141f790809e8278509 /actioncable/lib
parent81f4a7dce42e4a81f02c4b2d060d92b718b03d5a (diff)
downloadrails-e7f921d4050fc81652748ecdfa0b0f5378c5c723.tar.gz
rails-e7f921d4050fc81652748ecdfa0b0f5378c5c723.tar.bz2
rails-e7f921d4050fc81652748ecdfa0b0f5378c5c723.zip
Log if redis connection is in stale/failed state.
Diffstat (limited to 'actioncable/lib')
-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