From 6baeca654b9d8f87ae0aa0aec0761e98a91622c5 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 20 Jun 2023 16:24:47 -0500 Subject: [PATCH] chore(server): Improve moveAsset log (#2878) * chore(server): Improve moveAsset log * Update storage-template.service.ts --- .../src/domain/storage-template/storage-template.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/domain/storage-template/storage-template.service.ts b/server/src/domain/storage-template/storage-template.service.ts index ae0ba9b0e3..3b7df4d98e 100644 --- a/server/src/domain/storage-template/storage-template.service.ts +++ b/server/src/domain/storage-template/storage-template.service.ts @@ -96,7 +96,10 @@ export class StorageTemplateService { asset.originalPath = destination; asset.sidecarPath = sidecarDestination || null; } catch (error: any) { - this.logger.warn('Unable to save new originalPath to database, undoing move', error?.stack); + this.logger.warn( + `Unable to save new originalPath to database, undoing move for path ${asset.originalPath} - filename ${asset.originalFileName} - id ${asset.id}`, + error?.stack, + ); // Either sidecar move failed or the save failed. Eithr way, move media back await this.storageRepository.moveFile(destination, source);