On 1 November 2010 11:43, Peter Hickman <peterhickman386@googlemail.com> wrote:
> /usr/local/lib/ruby/1.8/logger.rb:501:in `write': Shifting failed.
> '/.../log/poll_sportsdb_for_updates.log.20101031' already exists.
> (Logger::ShiftingError)
>
> When this happened last year we changed mosts of the logs over from
> daily to weekly which got round the problem. But some logs do need to
> be rotated daily. Is there any way to fix this so that I don't have to
> go round checking out the world and it's dog next year?
can you add the timezone information to the logfilename?
'/.../log/poll_sportsdb_for_updates.log.20101031gmt
'/.../log/poll_sportsdb_for_updates.log.20101031bst
--
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.
No comments:
Post a Comment