来自 javascript 背景,我发现运行 rails 时的命令行很困惑。每当有事情发生时,我的命令行就会充满一堆废话。例如:
[2013-06-19 20:25:53] WARN Could not determine content-length of response body.
Set content-length of the response or set Response#chunked = true
如何关闭此功能以便我只看到自己的日志(当然还有错误)?
感谢任何帮助!
最佳答案
尝试更改日志级别,默认为信息。
来自指南:http://guides.rubyonrails.org/debugging_rails_applications.html#log-levels
关于ruby-on-rails - Rails - 如何禁用所有控制台日志记录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17203529/