lib/percy/logger.rb in percy-common-3.0.1 vs lib/percy/logger.rb in percy-common-3.0.2
- old
+ new
@@ -1,9 +1,9 @@
require 'logger'
module Percy
def self.logger
- @logger if defined?(@logger)
+ return @logger if defined?(@logger)
@logger ||= Logger.new(STDOUT)
@logger.level = Logger::INFO if ENV['PERCY_ENV'] == 'production'
@logger.formatter = proc do |severity, _datetime, _progname, msg|
"[#{severity}] #{msg}\n"
end