소스 검색

chore(server): Improve moveAsset log (#2878)

* chore(server): Improve moveAsset log

* Update storage-template.service.ts
Alex 2 년 전
부모
커밋
6baeca654b
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      server/src/domain/storage-template/storage-template.service.ts

+ 4 - 1
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);