mirror of
https://github.com/C9Glax/tranga.git
synced 2025-06-18 17:17:54 +02:00
Logging
This commit is contained in:
@ -16,10 +16,14 @@ public class DownloadMangaCoverJob(string mangaId, string? parentJobId = null, I
|
||||
{
|
||||
Manga? manga = Manga ?? context.Mangas.Find(this.MangaId);
|
||||
if (manga is null)
|
||||
{
|
||||
Log.Error($"Manga {this.MangaId} not found.");
|
||||
return [];
|
||||
}
|
||||
|
||||
manga.CoverFileNameInCache = manga.SaveCoverImageToCache();
|
||||
context.SaveChanges();
|
||||
Log.Info($"Saved cover for Manga {this.MangaId} to cache at {manga.CoverFileNameInCache}.");
|
||||
return [];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user