亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何在Rails 3.1中禁用資產管道(鏈輪)消息的日志記錄?

如何在Rails 3.1中禁用資產管道(鏈輪)消息的日志記錄?

波斯汪 2019-10-14 09:31:42
默認情況下,在Rails 3.1(RC1)下,(dev)日志中的鏈輪往往很冗長:Started GET "/assets/application.css" for 127.0.0.1 at 2011-06-10 17:30:45 -0400Compiled app/assets/stylesheets/application.css.scss  (5ms)  (pid 6303)Started GET "/assets/application.js" for 127.0.0.1 at 2011-06-10 17:30:45 -0400Compiled app/assets/stylesheets/default.css.scss  (15ms)  (pid 6303)...Started GET "/assets/default/header_bg.gif" for 127.0.0.1 at 2011-06-10 17:30:45 -0400Served asset /default/header_logo.gif - 304 Not Modified  (7ms)  (pid 6303)Served asset /default/header_bg.gif - 304 Not Modified  (0ms)  (pid 6246)Served asset /default/footer_bg.gif - 304 Not Modified  (49ms)  (pid 6236)...我想降低詳細程度或完全禁用它。我假設有一個干凈的方法來禁用或減少日志記錄的冗長性,方法是在其中添加一條environment.rb或多條配置行development.rb以config.active_record.logger = nil使ActiveRecord SQL語句靜音。
查看完整描述

3 回答

  • 3 回答
  • 0 關注
  • 617 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號