Forum: Ruby on Rails Error with Rails.logger: closed stream (IOError)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Chris J. (Guest)
on 2009-06-04 04:29
Hi all.

I am creating a plugin that uses the daemons gem to run some code in the
background.  In that code, I call Rails.logger.info "message", but
receive the following error.

/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/buffered_logger.rb:99:in
`write': closed stream (IOError)

Anyone seen this before and have any idea what's going on?

Thanks,
Chris
This topic is locked and can not be replied to.