feat(server): log all thumbnail generation attempts at verbose level (#24324)
Log thumbnail generation at verbose levelpull/24091/head
parent
6249996cdb
commit
79bed80226
|
|
@ -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`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue