From eb4a291c8181b9a7d77267d2ae0ff312ffaef57f Mon Sep 17 00:00:00 2001 From: Jonathan Jogenfors Date: Fri, 30 Aug 2024 00:16:12 +0200 Subject: [PATCH] chore(server): log path when generating external thumbnail (#12107) * feat: log path when generating external thumbnail * chore: clean up --------- Co-authored-by: Jason Rasmussen --- server/src/services/media.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/services/media.service.ts b/server/src/services/media.service.ts index b48d00a7a8..3f25134741 100644 --- a/server/src/services/media.service.ts +++ b/server/src/services/media.service.ts @@ -255,9 +255,12 @@ export class MediaService { throw new UnsupportedMediaTypeException(`Unsupported asset type for thumbnail generation: ${asset.type}`); } } + + const assetLabel = asset.isExternal ? asset.originalPath : asset.id; this.logger.log( - `Successfully generated ${format.toUpperCase()} ${asset.type.toLowerCase()} ${type} for asset ${asset.id}`, + `Successfully generated ${format.toUpperCase()} ${asset.type.toLowerCase()} ${type} for asset ${assetLabel}`, ); + return path; }