Skip to content

Commit

Permalink
Activity log
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentBean committed Apr 22, 2024
1 parent 983d943 commit c278282
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/Jobs/Product/UpdateProductJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,10 @@ public function failed(Throwable $throwable): void

activity()
->on($this->product)
->useLog('error')
->withProperties([
'message' => $throwable->getMessage(),
'code' => $throwable->getCode(),
'metadata' => [
'level' => 'error',
],
])
->log('Failed to update product in Akeneo');
}
Expand Down
4 changes: 1 addition & 3 deletions src/Jobs/ProductModel/UpdateProductModelJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,10 @@ public function failed(Throwable $throwable): void

activity()
->on($this->productModel)
->useLog('error')
->withProperties([
'message' => $throwable->getMessage(),
'code' => $throwable->getCode(),
'metadata' => [
'level' => 'error',
],
])
->log('Failed to update product model in Akeneo');
}
Expand Down

0 comments on commit c278282

Please sign in to comment.