mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore(server): Improve moveAsset log (#2878)
* chore(server): Improve moveAsset log * Update storage-template.service.ts
This commit is contained in:
parent
1b15b5414c
commit
6baeca654b
1 changed files with 4 additions and 1 deletions
|
|
@ -96,7 +96,10 @@ export class StorageTemplateService {
|
||||||
asset.originalPath = destination;
|
asset.originalPath = destination;
|
||||||
asset.sidecarPath = sidecarDestination || null;
|
asset.sidecarPath = sidecarDestination || null;
|
||||||
} catch (error: any) {
|
} 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
|
// Either sidecar move failed or the save failed. Eithr way, move media back
|
||||||
await this.storageRepository.moveFile(destination, source);
|
await this.storageRepository.moveFile(destination, source);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue