Skip to content

A self-hosted media server and file management system

fix: log trace is not string in hasTags

aminnausine6336aa4f318
diff --git a/app/Traits/HasTags.php b/app/Traits/HasTags.php
index 71acc450..e7090544 100644
--- a/app/Traits/HasTags.php
+++ b/app/Traits/HasTags.php
@@ -32,8 +32,8 @@ trait HasTags {
$modelClass::destroy($deletedTags);
} catch (\Throwable $th) {
Log::error('Faild creating/deleting tag relationships', [
- 'message' => $th->getMessage(),
- 'trace' => $th->getTrace(),
+ 'error' => $th->getMessage(),
+ 'trace' => $th->getTraceAsString(),
]);
}
}