platanus / activeadmin_jobs

It's a Rails engine that allows you to play nice with Active Job in Active Admin providing user feedback
MIT License
32 stars 8 forks source link

No such middleware to insert before: Rails::Rack::Logger #5

Open anthony-robin opened 7 years ago

anthony-robin commented 7 years ago

I get this issue when running rails generate activeadmin_jobs:install or starting web server after bundling.

MatayoshiMariano commented 6 years ago

@anthony-robin did you find a workaround?

anthony-robin commented 6 years ago

@MatayoshiMariano No and I don't use activeadmin anymore :(

ldlsegovia commented 6 years ago

@MatayoshiMariano What version of activeadmin_jobs are you using? The last version works with job_notifier v1.3.0 On that version, you can set the silenced_log option to false in the initializer. I think that will solve the problem.

You won't be able to silence the noisy output, but I think the gem will work.

JobNotifier.setup do |config|
  # If you're using an app client that is not part of rails project where Job Notifier gem was
  #  installed, you can define a custom root_url. For example: "http://app.platan.us/"
  # config.root_url = "/"

  # This gem uses the polling technique to inform what's happening with your jobs. This generates
  #  a noisy log output. If you want to silence this output
  config.silenced_log = false
end