diff --git a/lib/sidekiq/testing.rb b/lib/sidekiq/testing.rb index 4f59c481..25c0ee28 100644 --- a/lib/sidekiq/testing.rb +++ b/lib/sidekiq/testing.rb @@ -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