diff options
| author | JPVenson <github@jpb.email> | 2026-05-12 21:11:15 +0000 |
|---|---|---|
| committer | JPVenson <github@jpb.email> | 2026-05-12 21:11:15 +0000 |
| commit | a47da0f1a3c68ed2a418416f24e3d7b0ed704ed0 (patch) | |
| tree | 867cdd7445c6bc221295540fd683db85ec6391f5 /src | |
| parent | c6910c303437d122cb0df980738950c1299e706d (diff) | |
Update logging message for DbConcurrency messages
Diffstat (limited to 'src')
| -rw-r--r-- | src/Jellyfin.Database/Jellyfin.Database.Implementations/JellyfinDbContext.cs | 5 |
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."); |
