My solution was to add a block in my Dragonfly initializer to remove that noisy
rack-cache and insert my own quiet version.
config/initializers/dragonfly.rb
12345678910111213141516
require'dragonfly/rails/images'app=Dragonfly[:images]# some storage settings here...# shuts down verbose cache loggingif%w(development test).include?Rails.envRails.application.middleware.delete(Rack::Cache)Rails.application.middleware.insert0,Rack::Cache,{:verbose=>false,# this is set to true in dragonfly/rails/images:metastore=>URI.encode("file:#{Rails.root}/tmp/dragonfly/cache/meta"),# URI encoded in case of spaces:entitystore=>URI.encode("file:#{Rails.root}/tmp/dragonfly/cache/body")}end
Now my testing serenity is unperturbed by extra logging noise.