diff options
| author | Bond-009 <bond.009@outlook.com> | 2026-05-14 07:47:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-14 07:47:21 +0200 |
| commit | a8ab398fabf46f3a8921fedaf6ac56dd52ecdeb5 (patch) | |
| tree | d80866a2509eccef143a6bc0a29b265625a15204 /src | |
| parent | 157431475f689caf5772c5d3e598eda75c7f2bff (diff) | |
| parent | a47da0f1a3c68ed2a418416f24e3d7b0ed704ed0 (diff) | |
Merge pull request #16835 from JPVenson/fix/adaptLoggingForUserConcurrency
Update log for user session related concurrency update fails
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."); |
