diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-04-21 22:13:55 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-04-21 22:13:55 +0530 |
commit | e7f921d4050fc81652748ecdfa0b0f5378c5c723 (patch) | |
tree | 7cd6a7e32a96cd816dfadd141f790809e8278509 /actioncable/lib/action_cable/subscription_adapter | |
parent | 81f4a7dce42e4a81f02c4b2d060d92b718b03d5a (diff) | |
download | rails-e7f921d4050fc81652748ecdfa0b0f5378c5c723.tar.gz rails-e7f921d4050fc81652748ecdfa0b0f5378c5c723.tar.bz2 rails-e7f921d4050fc81652748ecdfa0b0f5378c5c723.zip |
Log if redis connection is in stale/failed state.
Diffstat (limited to 'actioncable/lib/action_cable/subscription_adapter')
-rw-r--r-- | actioncable/lib/action_cable/subscription_adapter/evented_redis.rb | 4 |
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 |