swoft-cloud / swoft

🚀 PHP Microservice Full Coroutine Framework
https://swoft.org
Apache License 2.0
5.59k stars 786 forks source link

Crontab任务如何捕获异常信息 #1431

Closed ijisong closed 3 years ago

ijisong commented 3 years ago
Q A
Bug report? yno
Feature request? no
Swoft version 2.0.5
Swoole version x.y.z (by php --ri swoole)
PHP version x.y.z (by php -v)

使用定时任务执行数据刷新发生异常是如何捕获异常信息,Exception尝试多次还是不行,咨询下怎么才能获取到