rails 用黄瓜显示不必要的输出
rails with cucumber show unnecessary output
当我 运行 bundle exec cucumber
这行 "ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"" 打印在控制台上。
这是为什么?我怎样才能摆脱它?
$ bundle exec cucumber
ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
Using the default profile...
0 scenarios
0 steps
0m0.000s
$
我正在浏览堆栈溢出,今天我
在这里找到了解决方案 ->
基本上,添加
Rails.application.configure do
# ...
config.log_level = :info
end
到config/environments/test.rb
当我 运行 bundle exec cucumber
这行 "ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"" 打印在控制台上。
这是为什么?我怎样才能摆脱它?
$ bundle exec cucumber
ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
Using the default profile...
0 scenarios
0 steps
0m0.000s
$
我正在浏览堆栈溢出,今天我 在这里找到了解决方案 ->
基本上,添加
Rails.application.configure do
# ...
config.log_level = :info
end
到config/environments/test.rb