lib/volt/server/rack/quiet_common_logger.rb in volt-0.8.27.beta2 vs lib/volt/server/rack/quiet_common_logger.rb in volt-0.8.27.beta3

- old
+ new

@@ -1,5 +1,6 @@ +require 'rack' class QuietCommonLogger < Rack::CommonLogger include Rack @@ignore_extensions = %w(png jpg jpeg ico gif woff tff svg eot css js) @@ -14,11 +15,10 @@ else ext = nil end body = BodyProxy.new(body) do - # Don't log on ignored extensions unless @@ignore_extensions.include?(ext) log(env, status, header, began_at) end end @@ -29,6 +29,6 @@ log(env, status, header, began_at) end [status, header, body] end -end \ No newline at end of file +end