Rails app logging duplicate requests

前端 未结 8 2182
感情败类
感情败类 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: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.

提交回复
热议问题