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) |
|---|
-
railties/lib/commands/servers/mongrel.rb
old new 46 46 ENV["RAILS_ENV"] = OPTIONS[:environment] 47 47 RAILS_ENV.replace(OPTIONS[:environment]) if defined?(RAILS_ENV) 48 48 49 require 'initializer'50 Rails::Initializer.run(:initialize_logger)51 52 49 puts "=> Call with -d to detach" 53 50 puts "=> Ctrl-C to shutdown server" 54 51 tail_thread = tail(Pathname.new("#{File.expand_path(RAILS_ROOT)}/log/#{RAILS_ENV}.log").cleanpath)