2.0.2 (2022-02-15)

- Replace strftime with strtotime for PHP8.1 support
- Added processing class into proc line for easier debugging
This commit is contained in:
Daniel Mason 2022-02-15 09:07:24 +13:00
parent 3d869bf653
commit ac044747aa
5 changed files with 15 additions and 9 deletions

View file

@ -24,7 +24,7 @@ class ResqueFailureRedis implements ResqueFailureInterface
public function __construct($payload, $exception, $worker, $queue)
{
$data = new \stdClass();
$data->failed_at = strftime('%a %b %d %H:%M:%S %Z %Y');
$data->failed_at = date('D M d H:i:s T Y');
$data->payload = $payload;
$data->exception = get_class($exception);
$data->error = $exception->getMessage();