Rails Logger appears to be duplicating log lines

后端 未结 2 1293
情深已故
情深已故 2021-02-19 00:52

I am experiencing something curious with the rails logger.

When I insert a Rails.logger.info(\"Some text\") in the code, usually to trace flow, I am getting two lines of

2条回答
  •  说谎
    说谎 (楼主)
    2021-02-19 01:09

    Try moving the rails_12factor gem (if you've got it installed) to the production group.

    group :production do
      gem 'rails_12factor'
    end
    

提交回复
热议问题