bin/try in redis-reconnect_with_readonly-0.9.1 vs bin/try in redis-reconnect_with_readonly-0.9.2
- old
+ new
@@ -5,9 +5,9 @@
require 'logger'
Redis::ReconnectWithReadonly.reconnect_attempts = 5
Redis::ReconnectWithReadonly.initial_retry_wait = 1
Redis::ReconnectWithReadonly.max_retry_wait = 3
+Redis::ReconnectWithReadonly.logger = Logger.new(STDOUT)
-logger = Logger.new(STDOUT)
-redis = Redis.new(host: 'localhost', port: '6380', logger: logger)
+redis = Redis.new(host: 'localhost', port: '6380')
redis.set('key', 'val')