From d7ff6d023cf5ca407a3c1b1cacfb26229c6a76e2 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Mon, 3 Jun 2024 16:39:22 +0200 Subject: [PATCH] Apply review suggestions --- Jellyfin.Server/Migrations/Routines/FixAudioData.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jellyfin.Server/Migrations/Routines/FixAudioData.cs b/Jellyfin.Server/Migrations/Routines/FixAudioData.cs index fb0b35781..a20253369 100644 --- a/Jellyfin.Server/Migrations/Routines/FixAudioData.cs +++ b/Jellyfin.Server/Migrations/Routines/FixAudioData.cs @@ -55,8 +55,9 @@ namespace Jellyfin.Server.Migrations.Routines { try { + _logger.LogInformation("Backing up {Library} to {BackupPath}", DbFilename, bakPath); File.Copy(dbPath, bakPath); - _logger.LogInformation("Library database backed up to {BackupPath}", bakPath); + _logger.LogInformation("{Library} backed up to {BackupPath}", DbFilename, bakPath); break; } catch (Exception ex) @@ -97,7 +98,8 @@ namespace Jellyfin.Server.Migrations.Routines } _itemRepository.SaveItems(results, CancellationToken.None); - startIndex += 100; + startIndex += results.Count; + _logger.LogInformation("Backfilled data for {UpdatedRecords} of {TotalRecords} audio records", startIndex, records); } } }