From f1805231c668e83c2e3e4efe20c6ca3c53b8825a Mon Sep 17 00:00:00 2001 From: glax Date: Thu, 16 Oct 2025 21:37:15 +0200 Subject: [PATCH] Expand TrangaBaseContext sync exception message --- API/Schema/TrangaBaseContext.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/API/Schema/TrangaBaseContext.cs b/API/Schema/TrangaBaseContext.cs index e5d0e76..b770a64 100644 --- a/API/Schema/TrangaBaseContext.cs +++ b/API/Schema/TrangaBaseContext.cs @@ -1,4 +1,3 @@ -using API.Workers; using log4net; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Diagnostics; @@ -37,7 +36,7 @@ public abstract class TrangaBaseContext : DbContext where T : DbContext } catch (Exception e) { - Log.Error("Sync failed:", e); + Log.Error($"Syncing {changesCount} changes {GetType().Name} {trigger?.Name} {reason} failed:", e); return (false, e.Message); } }