1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Print client redis connection info on pool creation, fixes #858

This commit is contained in:
Mike Perham 2013-04-17 09:53:01 -07:00
parent 2b8e3bd9ed
commit 5ef13cef0b

View file

@ -8,6 +8,12 @@ module Sidekiq
# need a connection for Fetcher and Retry
size = options[:size] || (Sidekiq.server? ? (Sidekiq.options[:concurrency] + 2) : 5)
if !Sidekiq.server?
opts = options.dup
opts.delete(:url)
Sidekiq.logger.info("#{Sidekiq::NAME} client using #{url} with options #{opts}")
end
ConnectionPool.new(:timeout => 1, :size => size) do
build_client(url, options[:namespace], options[:driver] || 'ruby')
end