Created
January 19, 2012 19:47
-
-
Save tenderlove/1642130 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/railties/lib/rails/commands/server.rb b/railties/lib/rails/commands/server.rb | |
index ea774eb..1cdb697 100644 | |
--- a/railties/lib/rails/commands/server.rb | |
+++ b/railties/lib/rails/commands/server.rb | |
@@ -67,6 +67,10 @@ module Rails | |
FileUtils.mkdir_p(Rails.root.join('tmp', dir_to_make)) | |
end | |
+ unless options[:daemonize] | |
+ Rails.logger = ActiveSupport::LogSplitter.new(Rails.logger, ActiveSupport::Logger.new($stdout)) | |
+ end | |
+ | |
super | |
ensure | |
# The '-h' option calls exit before @options is set. | |
@@ -76,7 +80,6 @@ module Rails | |
def middleware | |
middlewares = [] | |
- middlewares << [Rails::Rack::LogTailer, log_path] unless options[:daemonize] | |
middlewares << [Rails::Rack::Debugger] if options[:debugger] | |
middlewares << [::Rack::ContentLength] | |
Hash.new(middlewares) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment