Laravel logs not writing when queued with beanstalkd daemon

If I run the queue from the command line, my log lines are logged along with any errors.

However, if the queue is started from a beanstalkd queue running as a daemon, then no errors or explicit calls are logged Log

.

What can block them when they are queued?

+3


source to share


1 answer


This was caused by the fact that when launched as a daemon, the application instance is resident in memory, so any code changes (such as entering log lines) will not be displayed.



To fix this, execute php artisan queue:restart

or just click the reload icon in Forge (if used) after deploying the code.

+2


source







All Articles