From 5b6359a8e88103a14c6e769874ac2adb99de8384 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 29 Jan 2015 09:38:15 +0000 Subject: Don't output messages unless $DEBUG=1 --- lib/custodian/queue.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/custodian/queue.rb b/lib/custodian/queue.rb index d1f2057..8d48575 100644 --- a/lib/custodian/queue.rb +++ b/lib/custodian/queue.rb @@ -6,7 +6,7 @@ begin require library rescue LoadError - puts "Failed to load the library: #{library}" + ENV["DEBUG"] && puts( "Failed to load the library: #{library}" ) end end -- cgit v1.2.1