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:
parent
2b8e3bd9ed
commit
5ef13cef0b
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue