Skip to content

Commit

Permalink
make the extremely useful logs debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Nov 9, 2012
1 parent e61ffe0 commit 3ae8d6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/lib/rails/rack/logger.rb
Expand Up @@ -24,8 +24,8 @@ def call(env)
def call_app(request, env) def call_app(request, env)
# Put some space between requests in development logs. # Put some space between requests in development logs.
if Rails.env.development? if Rails.env.development?
Rails.logger.info '' Rails.logger.debug ''
Rails.logger.info '' Rails.logger.debug ''
end end


Rails.logger.info started_request_message(request) Rails.logger.info started_request_message(request)
Expand Down

3 comments on commit 3ae8d6d

@guilleiguaran
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:trollface:

@bogdan
Copy link
Contributor

@bogdan bogdan commented on 3ae8d6d Nov 9, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement.
Why is it enabled only in development?

I think in production and test it would useful as well.

@wlipa
Copy link

@wlipa wlipa commented on 3ae8d6d Jan 6, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An option to add this back by env would be great. I find the "smashed-together" log much harder to scan.

Please sign in to comment.