lib/percheron/logger.rb in percheron-0.7.8 vs lib/percheron/logger.rb in percheron-0.7.9
- old
+ new
@@ -3,11 +3,13 @@
$logger = Logger.new(STDOUT)
logger_level = Logger::INFO
logger_level = Logger::WARN if ENV['QUIET'] == 'true'
+# :nocov:
if ENV['DEBUG'] == 'true' || ENV['DOCKER_DEBUG'] == 'true'
logger_level = Logger::DEBUG
Docker.logger = $logger if ENV['DOCKER_DEBUG'] == 'true'
end
+# :nocov:
$logger.level = logger_level