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

Dont use logger in options parsing, fixes #1335

This commit is contained in:
Mike Perham 2013-11-13 21:33:44 -08:00
parent 0da83d6c8d
commit 6bcca735fe
2 changed files with 3 additions and 3 deletions

View file

@ -326,8 +326,9 @@ module Sidekiq
end
ns = opts.delete(:namespace)
if ns
Sidekiq.logger.warn("namespace should be set in your ruby initializer, is ignored in config file")
Sidekiq.logger.warn("config.redis = { :url => ..., :namespace => '#{ns}' }")
# logger hasn't been initialized yet, puts is all we have.
puts("namespace should be set in your ruby initializer, is ignored in config file")
puts("config.redis = { :url => ..., :namespace => '#{ns}' }")
end
opts
end

View file

@ -3,7 +3,6 @@
:require: ./test/fake_env.rb
:pidfile: /tmp/sidekiq-config-test.pid
:logfile: /tmp/sidekiq.log
:namespace: sidekiq
:concurrency: 50
:queues:
- [<%="very_"%>often, 2]