From c278282e277532a7b77650b51738aed22bece7fa Mon Sep 17 00:00:00 2001 From: Vincent Boon Date: Mon, 22 Apr 2024 09:52:18 +0200 Subject: [PATCH] Activity log --- src/Jobs/Product/UpdateProductJob.php | 4 +--- src/Jobs/ProductModel/UpdateProductModelJob.php | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Jobs/Product/UpdateProductJob.php b/src/Jobs/Product/UpdateProductJob.php index 6ca7fd5..9af2cea 100644 --- a/src/Jobs/Product/UpdateProductJob.php +++ b/src/Jobs/Product/UpdateProductJob.php @@ -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'); } diff --git a/src/Jobs/ProductModel/UpdateProductModelJob.php b/src/Jobs/ProductModel/UpdateProductModelJob.php index 3176e5d..6d72252 100644 --- a/src/Jobs/ProductModel/UpdateProductModelJob.php +++ b/src/Jobs/ProductModel/UpdateProductModelJob.php @@ -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'); }