Permalink
Browse files

Silence logger initialization

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Sep 3, 2005
1 parent 3f14b1e commit 558707f61a34e1cd7e0f4e537ff23fe354048bba
Showing with 7 additions and 3 deletions.
  1. +3 −1 railties/environments/environment.rb
  2. +2 −2 railties/fresh_rakefile
  3. +2 −0 railties/lib/initializer.rb
@@ -4,4 +4,6 @@
Rails::Initializer.run do |config|
# See Rails::Configuration for options
-end
+end
+
+# Include your application configuration below
View
@@ -1,5 +1,5 @@
-# Add your own tasks in files placed in config/tasks
-# and they will automatically be available to Rake.
+# Add your own tasks in files placed in config/tasks ending in .rake,
+# for example config/tasks/switchtower.rake, and they will automatically be available to Rake.
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
Rails::Initializer.run(:set_load_path)
@@ -73,7 +73,9 @@ def initialize_logger
)
end
+ old_verbose, $VERBOSE = $VERBOSE, nil
Object.const_set "RAILS_DEFAULT_LOGGER", logger
+ $VERBOSE = old_verbose
end
def initialize_framework_logging

0 comments on commit 558707f

Please sign in to comment.