aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2026-05-12 21:11:15 +0000
committerJPVenson <github@jpb.email>2026-05-12 21:11:15 +0000
commita47da0f1a3c68ed2a418416f24e3d7b0ed704ed0 (patch)
tree867cdd7445c6bc221295540fd683db85ec6391f5 /src
parentc6910c303437d122cb0df980738950c1299e706d (diff)
Update logging message for DbConcurrency messages
Diffstat (limited to 'src')
-rw-r--r--src/Jellyfin.Database/Jellyfin.Database.Implementations/JellyfinDbContext.cs5
1 files changed, 5 insertions, 0 deletions
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<JellyfinDbContext> 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.");