Closed judodan closed 2 years ago
Turns out log_output
must be set to true
in crunz.yml
file. It's in README: https://github.com/crunzphp/crunz#keeping-the-output
Interesting, that's not how I read that. However, I set the boolean and I'm in business! Thanks!
Crunz version: 3.3.2
PHP version: 7.4.29/8.1.6
Operating system type and version:
CENTOS/MacOS Monterey
Description
using sendOutputTo command is not writing task output to file
How to reproduce
Simple task:
I expect the output to be in the designated file, but it's not. This result is the same using CENTOS/PHP7.4.x or locally on my Mac using Monterey and either PHP7.4.x or 8.1.x
Possible Solution
Additional context
Cron job is configured to email me any output. I receive no emails, but if I remove the call to sendOutputTo, it behaves as expected and emails me the output of the task.