in reply to Log::Dispatch::FileRotate error handling

the module hangs in case there is no disk space.
Log::Dispatch::FileRotate is a wrapper around Log::Dispatch::File, which prints messages to a file.

What exactly would you want Log::Dispatch::FileRotate to do when you run out of disk space? Return immediately and hide the possibly corrupt state of your system? Would it not be better if you detect you're low on disk and deal with it instead?

--
Andreas
  • Comment on Re: Log::Dispatch::FileRotate error handling

Replies are listed 'Best First'.
Re^2: Log::Dispatch::FileRotate error handling
by weismat (Friar) on Jan 03, 2008 at 12:09 UTC
    From my pov the calling module/program should die/croak and the calling program should have the choice to handle the die/croak via eval or to die as well.
    Checking disk space/permission etc. involves also the chance to run into a race between check and change of disk space thus an improved error handling would be highly appreciated.