lib/psd/logger.rb in psd-1.4.3 vs lib/psd/logger.rb in psd-1.4.4
- old
+ new
@@ -11,26 +11,18 @@
def logger
return @logger if @logger
if debug || ENV['PSD_DEBUG']
- @logger = ::Logger.new(debug_output)
+ @logger = ::Logger.new(STDOUT)
@logger.formatter = proc do |severity, datetime, progname, msg|
"#{severity}: #{msg}\n"
end
else
@logger = DisabledLogger.new
end
return @logger
- end
-
- def debug_output
- if ENV['PSD_DEBUG']
- ENV['PSD_DEBUG'] == 'STDOUT' ? STDOUT : ENV['PSD_DEBUG']
- end
-
- STDOUT
end
end
end
class DisabledLogger
\ No newline at end of file