【发布时间】:2012-03-25 15:19:20
【问题描述】:
我刚刚升级到 rails 3.2.2,现在在 rails 上,页面加载,我在日志中得到了所有这些错误:
[2012-03-07 19:46:14] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true
[2012-03-07 19:46:14] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true
根据之前的 SO 线程,我尝试了以下方法:
/config/application.rb
config.assets.logger = false
config.assets.logger = nil
这些都不起作用。关于如何为此错误禁用此日志记录的任何想法?或者解决问题:)
谢谢
【问题讨论】:
-
虽然它可能是重复的,但它确实需要引起 Rails 团队的注意,因为它已经超过 6 个月了,并且一个新版本,因为他们承认他们需要清理它,但他们仍然没有.
标签: ruby-on-rails ruby-on-rails-3