feat(server): log all thumbnail generation attempts at verbose level (#24324)

Log thumbnail generation at verbose level
pull/24091/head
Sergey Katsubo 2025-12-02 05:26:13 +07:00 committed by GitHub
parent 6249996cdb
commit 79bed80226
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

@ -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`);