We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1fc07d4 + c4cbe50 commit e5957f1Copy full SHA for e5957f1
lib/redis/client.rb
@@ -461,7 +461,9 @@ def _parse_driver(driver)
461
end
462
463
class Connector
464
+ attr_reader :logger
465
def initialize(options)
466
+ @logger = options[:logger]
467
@options = options
468
469
@@ -523,6 +525,11 @@ def sentinel_detect
523
525
524
526
return result
527
528
+ rescue CannotConnectError
529
+ if logger
530
+ msg = "[Redis] Could not connect to sentinel #{sentinel[:host]}:#{sentinel[:port]}"
531
+ logger.debug(msg)
532
+ end
533
ensure
534
client.disconnect
535
0 commit comments