From d081a41ccd4c6ee877cc85f432d84cf6ba3ddd00 Mon Sep 17 00:00:00 2001 From: Christiaan Bloemendaal Date: Tue, 30 Jan 2024 09:09:11 +0100 Subject: [PATCH] chore: move metadata fetch log --- .../Initialization/MissingMetadataInitializer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mangarr.Stack/Initialization/MissingMetadataInitializer.cs b/src/Mangarr.Stack/Initialization/MissingMetadataInitializer.cs index d6944f7..ef00e5a 100644 --- a/src/Mangarr.Stack/Initialization/MissingMetadataInitializer.cs +++ b/src/Mangarr.Stack/Initialization/MissingMetadataInitializer.cs @@ -32,8 +32,6 @@ public async Task Initialize() { foreach (RequestedMangaDocument requestedMangaDocument in _requestedMangaRepository.Items) { - _logger.LogInformation("Fetching metadata for manga with id '{Id}'", requestedMangaDocument.Id); - MangaMetadataDocument? mangaMetadataDocument = _mangaMetadataRepository.GetByManga(requestedMangaDocument); if (mangaMetadataDocument != null) @@ -41,6 +39,8 @@ public async Task Initialize() continue; } + _logger.LogInformation("Fetching metadata for manga with id '{Id}'", requestedMangaDocument.Id); + Result result = await _aniListApi.GetMedia(requestedMangaDocument.SearchId); if (result.IsFailed)