diff options
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/initializer.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index 13a1e1308a..fd9f2fb61a 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -76,9 +76,7 @@ module Rails ) end - old_verbose, $VERBOSE = $VERBOSE, nil - Object.const_set "RAILS_DEFAULT_LOGGER", logger - $VERBOSE = old_verbose + silence_warnings { Object.const_set "RAILS_DEFAULT_LOGGER", logger } end def initialize_framework_logging |