quiet_assets icon indicating copy to clipboard operation
quiet_assets copied to clipboard

quiet_assets not quiet assets with thin 2.0.0.pre version in rails 3.2.13

Open qichunren opened this issue 13 years ago • 13 comments

ruby -v ruby 1.9.3p194

rails 3.2.13 thin 2.0.0.pre quiet_assets 1.0.2

I start rails with command bundle exec thin -p 3000, and all assets request log still output in console.

qichunren avatar Jul 24 '13 03:07 qichunren

Hi @qichunren Does it work for you with 1.5 thin and problem only with 2.0?

route avatar Aug 02 '13 11:08 route

Yes

qichunren avatar Aug 03 '13 02:08 qichunren

Similar issue here, on ruby 2 but with the standard rails server.

arebelrossi avatar Aug 28 '13 10:08 arebelrossi

@darioshanghai as you can see from travis-ci it works for 2.0 so I need additional info, please open a new issue.

route avatar Aug 28 '13 12:08 route

@qichunren since this issue for thin version pre it's in a low priority so go ahead to fix it or I'll take a look when I find time.

route avatar Aug 28 '13 12:08 route

Same issue here:

ruby 2.0.0p195
Rails 3.2.1
unicorn v4.6.2
quiet_assets (1.0.2)

exalted avatar Oct 31 '13 15:10 exalted

+1

bcackerman avatar Jan 06 '14 05:01 bcackerman

+1

macarthy avatar Jan 10 '14 09:01 macarthy

+1 using unicorn ignored quiet_assets

guyisra avatar Feb 14 '14 11:02 guyisra

Not quiet for me either -- did a bin/spring stop to rule that out -- I am using Pow as my server, rails 4.0.2, ruby 2.1.0

EDIT: nevermind it works, after i posted i realized that spring has nothing to do with pow and i am supposed to restart with touch tmp/restart.txt -- thanks for keeping this gem up to scratch!

kfatehi avatar Feb 19 '14 22:02 kfatehi

Note working for me either with ruby 1.9.3p327, rails 3.2.12, and WEBrick.

EDIT: Just tried using thin with same ruby and rails versions and still seeing assets output in the logs.

jesseclark avatar Sep 03 '14 02:09 jesseclark

In order to remove the "GET ... {.js,.png,.css}" logs, I made this patch:


if !ENV['DISABLE_ASSET_FILTERING'] && (Rails.env.development? || Rails.env.test?)
  module Rack
    class CommonLogger

      FILTER_REGEXPS = [/\.css/, /\.js/, /\.png/, /\.jpg/, /\.gif/, /.ico/]

      def call_with_silencer(env)
        if FILTER_REGEXPS.any? { |re| re.match env['PATH_INFO'] }
          @app.call env
        else
          call_without_silencer(env)
        end
      end

      alias_method_chain :call, :silencer
    end
  end
end


I can issue a PR if you'd like.

joelmccracken avatar Sep 19 '14 19:09 joelmccracken

No working here either: ruby 2.0.0-p576 rails 4.0.11

smarquez1 avatar Mar 19 '15 14:03 smarquez1