public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
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)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.