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

Prefer warn over puts so these can be suppressed (#4879)

* Prefer warn over puts so these can be suppressed

* What's up(level): 1 dog

* Less  output
This commit is contained in:
Nick Quaranto 2021-04-20 10:50:11 -04:00 committed by GitHub
parent 53999adc2c
commit 3330df0ee3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -338,7 +338,5 @@ module Sidekiq
end
if defined?(::Rails) && Rails.respond_to?(:env) && !Rails.env.test? && !$TESTING
puts("**************************************************")
puts("⛔️ WARNING: Sidekiq testing API enabled, but this is not the test environment. Your jobs will not go to Redis.")
puts("**************************************************")
warn("⛔️ WARNING: Sidekiq testing API enabled, but this is not the test environment. Your jobs will not go to Redis.", uplevel: 1)
end