From a96c49dc159379148a18e3acf021cd86b288b9ff 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/custodian') 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