wip
This commit is contained in:
parent
81c8b4181c
commit
a556a4b735
@ -51,8 +51,15 @@ public class PictureGalleryService
|
||||
// add if not exists
|
||||
if (!this.thumbnails.ContainsKey(creationTime))
|
||||
{
|
||||
this.thumbnails.Add(creationTime, PictureGalleryService.CreateThumbnail(picturePath, 244, 0));
|
||||
this._logger.Info($"Thumbnail '{picturePath}' successfully created");
|
||||
try
|
||||
{
|
||||
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++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user