mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 11:27:24 +08:00
job add failed log
This commit is contained in:
@@ -57,4 +57,15 @@ class SendLoginNotify implements ShouldQueue
|
||||
$result = $toolRep->sendMail($user->email, $subject, $body);
|
||||
do_log(sprintf('user: %s login notify result: %s', $user->username, var_export($result, true)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle a job failure.
|
||||
*
|
||||
* @param \Throwable $exception
|
||||
* @return void
|
||||
*/
|
||||
public function failed(\Throwable $exception)
|
||||
{
|
||||
do_log("failed: " . $exception->getMessage() . $exception->getTraceAsString(), 'error');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user