Added names for jobs to make log more readable

Bugfix logging delete thumbnail
This commit is contained in:
Ozzie Isaacs
2022-03-20 19:55:46 +01:00
parent ec53570118
commit c0d0660986
3 changed files with 16 additions and 13 deletions
+4 -1
View File
@@ -487,7 +487,10 @@ class TaskClearCoverThumbnailCache(CalibreTask):
return 'ThumbnailsClear'
def __str__(self):
return "Delete Thumbnail cache directory"
if self.book_id > 0:
return "Delete Thumbnail cache for book " + str(self.book_id)
else:
return "Delete Thumbnail cache directory"
@property
def is_cancellable(self):