diff options
author | Lucas Mazza <lucastmazza@gmail.com> | 2013-01-26 18:11:04 -0200 |
---|---|---|
committer | Lucas Mazza <lucastmazza@gmail.com> | 2013-01-26 18:11:04 -0200 |
commit | 70af2bde29996c7cb66bfe0e8d2092572deeea78 (patch) | |
tree | da5d61165d749e180817f033e3b37e82e9ab3785 /activerecord/lib | |
parent | 41ff6a10216f48f43605a1f9cd6094765cab750f (diff) | |
download | rails-70af2bde29996c7cb66bfe0e8d2092572deeea78.tar.gz rails-70af2bde29996c7cb66bfe0e8d2092572deeea78.tar.bz2 rails-70af2bde29996c7cb66bfe0e8d2092572deeea78.zip |
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.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 67339c05e5..823595a128 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -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) |