From a47da0f1a3c68ed2a418416f24e3d7b0ed704ed0 Mon Sep 17 00:00:00 2001 From: JPVenson Date: Tue, 12 May 2026 21:11:15 +0000 Subject: [PATCH] Update logging message for DbConcurrency messages --- .../Jellyfin.Database.Implementations/JellyfinDbContext.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Jellyfin.Database/Jellyfin.Database.Implementations/JellyfinDbContext.cs b/src/Jellyfin.Database/Jellyfin.Database.Implementations/JellyfinDbContext.cs index f6fce7279a..83c15aa647 100644 --- a/src/Jellyfin.Database/Jellyfin.Database.Implementations/JellyfinDbContext.cs +++ b/src/Jellyfin.Database/Jellyfin.Database.Implementations/JellyfinDbContext.cs @@ -273,6 +273,11 @@ public class JellyfinDbContext(DbContextOptions options, ILog }).ConfigureAwait(false); return result; } + catch (DbUpdateConcurrencyException) + { + // a concurrency exception is supposed to be always handled by the invoker of the method, logging it here is only causing log bloat. + throw; + } catch (Exception e) { logger.LogError(e, "Error trying to save changes.");