Skip to content

Commit

Permalink
Merge pull request #6 from justbetter/feature/activitylog
Browse files Browse the repository at this point in the history
Activity log
  • Loading branch information
VincentBean authored Apr 22, 2024
2 parents 983d943 + c278282 commit ae1e4c8
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 ae1e4c8

Please sign in to comment.