From 3330df0ee37cfd3e0cd3ef01e3e66b584b99d488 Mon Sep 17 00:00:00 2001 From: Nick Quaranto Date: Tue, 20 Apr 2021 10:50:11 -0400 Subject: [PATCH] Prefer warn over puts so these can be suppressed (#4879) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Prefer warn over puts so these can be suppressed * What's up(level): 1 dog * Less ✨ output --- lib/sidekiq/testing.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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