I’m working on a very sensitive cron job - if it errors out at any points (php, db), then I need to send an email. How can I catch everything?
I’m working on a very sensitive cron job - if it errors out at any points (php, db), then I need to send an email. How can I catch everything?
Solution: don’t.
Instead, I’ll be setting up another cron to check my logs for any occurrences of warning, error, or exception.