From 11c476a69a242398d2a6b63d38a3b613b01fe368 Mon Sep 17 00:00:00 2001 From: Jason Noble Date: Mon, 30 Apr 2012 08:12:21 -0600 Subject: [PATCH] Only call add if we are at debug level --- lib/logger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logger.rb b/lib/logger.rb index 6092959399520e..09881e7fd6253d 100644 --- a/lib/logger.rb +++ b/lib/logger.rb @@ -396,7 +396,7 @@ def <<(msg) # See #info for more information. # def debug(progname = nil, &block) - add(DEBUG, nil, progname, &block) + add(DEBUG, nil, progname, &block) if debug? end #