guard 输出窗口填满
D, [2012-11-19T18:36:30.391459 #53057] DEBUG -- : (0.1ms) begin transaction
D, [2012-11-19T18:36:30.392668 #53057] DEBUG -- : SQL (0.4ms) INSERT INTO "foo" ("created_at", "id", "foo", "foo", "updated_at", "value") VALUES (?, ?, ?, ?, ?, ?) [["created_at", 2012-11-19 18:36:30 -0800], ["id", 4], ["bar", 2], ["foo", 12], ["updated_at", 2012-11-19 18:36:30 -0800], ["value", true]]
D, [2012-11-19T18:36:30.393572 #53057] DEBUG -- : (0.7ms) commit transaction
如何关闭这个输出?
我尝试了 ActiveRecord::Base.logger = nil
,但这似乎没有任何作用。
使用 sinatra-activerecord
、rspec
和 guard
。
最佳答案
关于activerecord - 如何使用 Active Record 在 Sinatra 中静音 SQLite3 记录器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13465842/