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:
parent
41ff6a1021
commit
70af2bde29
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue