From 51aeae91ace4d0afb934e2d9a21000f2ddc4ea53 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 12 Mar 2012 14:25:25 -0700 Subject: allow people to specify custom formatters, use the default formatter in production so that PID and timestamp are logged. fixes #5388 --- railties/lib/rails/commands/server.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'railties/lib/rails/commands') diff --git a/railties/lib/rails/commands/server.rb b/railties/lib/rails/commands/server.rb index 0b757cbe28..a608693ca4 100644 --- a/railties/lib/rails/commands/server.rb +++ b/railties/lib/rails/commands/server.rb @@ -71,6 +71,8 @@ module Rails wrapped_app # touch the app so the logger is set up console = ActiveSupport::Logger.new($stdout) + console.formatter = Rails.logger.formatter + Rails.logger.extend(ActiveSupport::Logger.broadcast(console)) end -- cgit v1.2.3