Permalink
Browse files

Ensure the logger is initialized. Closes #5629.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4573 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 6a66f91 commit 9f3625dd0ae1691be3ea0b745a65149b9e4c2837 @jeremy jeremy committed Jul 6, 2006
Showing with 6 additions and 1 deletion.
  1. +2 −0 railties/CHANGELOG
  2. +4 −1 railties/lib/commands/servers/mongrel.rb
View
@@ -1,5 +1,7 @@
*SVN*
+* Ensure the logger is initialized. #5629 [mike@clarkware.com]
+
* Added Mongrel-spawning capabilities to script/process/spawner. Mongrel will be the default choice if installed, otherwise FCGI is tried [DHH]. Examples:
spawner # starts instances on 8000, 8001, and 8002 using Mongrel if available
@@ -1,11 +1,14 @@
require 'rbconfig'
require 'commands/servers/base'
-unless defined?(Mongrel)
+unless defined?(Mongrel)
puts "PROBLEM: Mongrel is not available on your system (or not in your path)"
exit 1
end
+require 'initializer'
+Rails::Initializer.run(:initialize_logger)
+
require 'optparse'
detach = false

0 comments on commit 9f3625d

Please sign in to comment.