use report instead of logger

This commit is contained in:
Denis Duliçi
2021-06-08 23:33:17 +03:00
parent 5ddfe315f4
commit 8dae25abc5
8 changed files with 14 additions and 19 deletions

View File

@ -162,10 +162,10 @@ class RecurringCheck extends Command
try {
return $this->$function($model, $schedule_date);
} catch (\Exception | \Throwable | \Swift_RfcComplianceException| \Swift_TransportException | \Illuminate\Database\QueryException $e) {
} catch (\Throwable $e) {
$this->error($e->getMessage());
logger('Recurring check:: ' . $e->getMessage());
report($e);
return false;
}