Skip to content

Commit 4e49140

Browse files
committed
Updated error logging
1 parent b0fdfc6 commit 4e49140

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/JobStatusUpdater.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ private function updateEvent($event, array $data)
3333

3434
try {
3535
$data['attempts'] = $event->job->attempts();
36-
} catch (\Exception $e) {
36+
} catch (\Throwable $e) {
3737
try {
3838
$data['attempts'] = $job->attempts();
39-
} catch (\Exception $e) {
40-
39+
} catch (\Throwable $e) {
40+
Log::error($e->getMessage());
4141
}
4242
}
4343

@@ -61,7 +61,7 @@ private function parseJob($event)
6161
$payload = $event->job->payload();
6262

6363
return unserialize($payload['data']['command']);
64-
} catch (\Exception $e) {
64+
} catch (\Throwable $e) {
6565
Log::error($e->getMessage());
6666

6767
return null;

0 commit comments

Comments
 (0)