Error with Rails.logger: closed stream (IOError)

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