From e7f921d4050fc81652748ecdfa0b0f5378c5c723 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Thu, 21 Apr 2016 22:13:55 +0530 Subject: Log if redis connection is in stale/failed state. --- actioncable/lib/action_cable/subscription_adapter/evented_redis.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actioncable/lib/action_cable/subscription_adapter') 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 -- cgit v1.2.3