Monday, September 6, 2010

[Rails] Logging question

I notice that even though my app logs fine to the dev and prod logs, I
am having issue logging from other places like rake and console.

I have a rake task process_post that calls

#Post model
def self.process_post
logger.info "test"
end

I verified that the log level is set to "debug", but I never see this
message.

Same thing from the development console.

script/console -> logger.info 'hell0' never gets written to
develpoment log.

What am I doing wrong?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate