From 9980d13924a78285979316592b5b25a0a760c2ef Mon Sep 17 00:00:00 2001 From: Abner Tudtud Date: Wed, 16 Oct 2024 10:32:45 +0800 Subject: [PATCH] Fix error logging --- src/Jobs/SyncMetadata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jobs/SyncMetadata.php b/src/Jobs/SyncMetadata.php index 4a8a8701..d8216ea1 100644 --- a/src/Jobs/SyncMetadata.php +++ b/src/Jobs/SyncMetadata.php @@ -37,7 +37,7 @@ public function handle(MetadataService $service): void ])->find($this->attributeId) ); } catch (Throwable $e) { - Log::error("Unable to sync metadata for attribute ID {$this->attributeId}", $e->getMessage()); + Log::error("Unable to sync metadata for attribute ID {$this->attributeId}", ['error' => $e->getMessage()]); } } }