Rails app logging duplicate requests

前端 未结 8 2180
感情败类
感情败类 2021-01-04 19:37

I have a Rails app that is generating duplicate requests for every request in development. The app is running Rails 2.3.5 with my primary development machine running Ubuntu

相关标签:
8条回答
  • 2021-01-04 20:09

    This was happening to me in rails 4.2.3 after installing the heroku rails_12factor gem which depends on rails_stdout_logging

    0 讨论(0)
  • 2021-01-04 20:11

    This small workaround solved my issue. Follow these steps:

    Under Rails External Libraries, Search for railties module. Go to this path: /lib/commands/server.rb

    In this file comment this line, Rails.logger.extend(ActiveSupport::Logger.broadcast(console))

    This command will switch off broadcasting, and just restart your rails server. You will not see any repeated logs anymore. Happy coding.

    0 讨论(0)
提交回复
热议问题