[Catalyst] Re: Log::Dispatch plugin is not working when run in the background

Robert Rothenberg robrwo at gmail.com
Fri Mar 2 10:38:23 GMT 2012


This appears to be fixed by adding the

  close_after_write true

option. I'm not sure that I understand *why* not using this option causes it
to exit or just not write anything, but that seems to be what happens.

I'm not sure if this is a Catalyst of Log::Dispatch issue.

On 29/02/12 13:08 Robert Rothenberg wrote:
> On my development machine, Log::Dispatch works fine with the following
> option in myapp.conf:
> 
>  <Log::Dispatch>
>   class File::Locked
>   filename /var/opt/myapp/log/catalyst.log
>   min_level info
>   mode append
>   format "[%d] [%p] %m <at %F line %L>%n"
>  </Log::Dispatch>
> 
> but when it runs with the --background option, it exits rather than logging
> anything.  As far as I can tell, the user has the correct permissions.
> 
> On a testing server, where it runs in the background, it does not output
> anything, but does not exit. The user it runs as has permissions to write to
> the directory, and even creates the log file if it doesn't exist, but
> nothing is actually written to it.
> 
> Any ideas why this is happening?




More information about the Catalyst mailing list