mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
feat(server): log all thumbnail generation attempts at verbose level (#24324)
Log thumbnail generation at verbose level
This commit is contained in:
@@ -174,8 +174,10 @@ export class MediaService extends BaseService {
|
|||||||
thumbhash: Buffer;
|
thumbhash: Buffer;
|
||||||
};
|
};
|
||||||
if (asset.type === AssetType.Video || asset.originalFileName.toLowerCase().endsWith('.gif')) {
|
if (asset.type === AssetType.Video || asset.originalFileName.toLowerCase().endsWith('.gif')) {
|
||||||
|
this.logger.verbose(`Thumbnail generation for video ${id} ${asset.originalPath}`);
|
||||||
generated = await this.generateVideoThumbnails(asset);
|
generated = await this.generateVideoThumbnails(asset);
|
||||||
} else if (asset.type === AssetType.Image) {
|
} else if (asset.type === AssetType.Image) {
|
||||||
|
this.logger.verbose(`Thumbnail generation for image ${id} ${asset.originalPath}`);
|
||||||
generated = await this.generateImageThumbnails(asset);
|
generated = await this.generateImageThumbnails(asset);
|
||||||
} else {
|
} else {
|
||||||
this.logger.warn(`Skipping thumbnail generation for asset ${id}: ${asset.type} is not an image or video`);
|
this.logger.warn(`Skipping thumbnail generation for asset ${id}: ${asset.type} is not an image or video`);
|
||||||
|
|||||||
Reference in New Issue
Block a user