lib/seo_cache/logger.rb in seo_cache-0.6.0 vs lib/seo_cache/logger.rb in seo_cache-0.7.0
- old
+ new
@@ -47,20 +47,20 @@
def level=(severity)
if severity.is_a?(Integer)
@logger.level = severity
else
case severity.to_s.downcase
- when 'debug'.freeze
+ when 'debug'
@logger.level = DEBUG
- when 'info'.freeze
+ when 'info'
@logger.level = INFO
- when 'warn'.freeze
+ when 'warn'
@logger.level = WARN
- when 'error'.freeze
+ when 'error'
@logger.level = ERROR
- when 'fatal'.freeze
+ when 'fatal'
@logger.level = FATAL
- when 'unknown'.freeze
+ when 'unknown'
@logger.level = UNKNOWN
else
raise ArgumentError, "invalid log level: #{severity}"
end
end