Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8665: dont_initialize_logging_before_mongrel_rails_starts.patch

File dont_initialize_logging_before_mongrel_rails_starts.patch, 0.6 kB (added by lazyatom, 1 year ago)

There doesn't seem to be any need to load the initializer, or to initialize logging at this point

  • railties/lib/commands/servers/mongrel.rb

    old new  
    4646  ENV["RAILS_ENV"] = OPTIONS[:environment] 
    4747  RAILS_ENV.replace(OPTIONS[:environment]) if defined?(RAILS_ENV) 
    4848 
    49   require 'initializer' 
    50   Rails::Initializer.run(:initialize_logger) 
    51  
    5249  puts "=> Call with -d to detach" 
    5350  puts "=> Ctrl-C to shutdown server" 
    5451  tail_thread = tail(Pathname.new("#{File.expand_path(RAILS_ROOT)}/log/#{RAILS_ENV}.log").cleanpath)