lib/percy/logger.rb in percy-common-1.0.0 vs lib/percy/logger.rb in percy-common-1.1.0
- old
+ new
@@ -2,15 +2,10 @@
require 'syslog-logger'
module Percy
def self.logger
@logger if defined?(@logger)
-
- if (ENV['PERCY_ENV'] || 'development') == 'development'
- @logger ||= Logger.new(STDOUT)
- else
- @logger ||= Logger::Syslog.new('percy', Syslog::LOG_LOCAL7)
- @logger.level = Logger::INFO
- end
+ @logger ||= Logger::Syslog.new('percy', Syslog::LOG_LOCAL7)
+ @logger.level = Logger::INFO if ENV['PERCY_ENV'] == 'production'
@logger
end
end