This commit is contained in:
Tobias Wohlleben 2025-01-22 15:49:26 +01:00
parent 81c8b4181c
commit a556a4b735

View File

@ -51,8 +51,15 @@ public class PictureGalleryService
// add if not exists // add if not exists
if (!this.thumbnails.ContainsKey(creationTime)) if (!this.thumbnails.ContainsKey(creationTime))
{ {
this.thumbnails.Add(creationTime, PictureGalleryService.CreateThumbnail(picturePath, 244, 0)); try
this._logger.Info($"Thumbnail '{picturePath}' successfully created"); {
this.thumbnails.Add(creationTime, PictureGalleryService.CreateThumbnail(picturePath, 244, 0));
this._logger.Info($"Thumbnail '{picturePath}' successfully created");
}
catch (Exception e)
{
this._logger.Error("thumbnail could not created: " + picturePath + " | " + e.Message);
}
} }
loop++; loop++;