1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use silence instead of quietly to silence the CheckPending middleware.

`Kernel.quietly` silences `STDOUT` and `STDERR`, which is useless if
the logger is writing to a file, while `AS::Logger#silence` swaps the
logger level to `ERROR`.

Related to #8820 and #8052.
This commit is contained in:
Lucas Mazza 2013-01-26 18:11:04 -02:00
parent 41ff6a1021
commit 70af2bde29

View file

@ -342,7 +342,7 @@ module ActiveRecord
end
def call(env)
ActiveRecord::Base.logger.quietly do
ActiveRecord::Base.logger.silence do
ActiveRecord::Migration.check_pending!
end
@app.call(env)