Skip to content

Instantly share code, notes, and snippets.

@tenderlove
Created January 19, 2012 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tenderlove/1642130 to your computer and use it in GitHub Desktop.
Save tenderlove/1642130 to your computer and use it in GitHub Desktop.
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