Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Rails.logger... not displaying text in the log #4760

Closed
mledom opened this Issue · 2 comments

2 participants

@mledom

I'm getting blank lines in the log output where I'm calling Rails.logger.debug { "print this message"} . Anytime I use the logger in code I get an a blank line. Is anyone else experiencing this. Our team is using 1.9.2 & 1.9.3 with Rails 3.2. This was not happening with Rails 3.1.3

@kennyj kennyj referenced this issue from a commit in kennyj/rails
@kennyj kennyj Fix GH #4760. A Block was not evaluated. 91700bf
@kennyj
Collaborator

Hi! @mledom

I could reproduce this issue.
It seems that 3-2-stable's TaggedLogging#debug (info, and so on) don't evaluate block, because the 2nd argument of Logger#add is not never nil.

I think that I fixed this issue.
Please confirm kennyj@91700bf !

@kennyj
Collaborator

I'm closeing this issue, because the PR is merged.

@kennyj kennyj closed this
@kennyj kennyj referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.