mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-17 10:50:45 +02:00
Expand TrangaBaseContext sync exception message
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
using API.Workers;
|
|
||||||
using log4net;
|
using log4net;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Diagnostics;
|
using Microsoft.EntityFrameworkCore.Diagnostics;
|
||||||
@@ -37,7 +36,7 @@ public abstract class TrangaBaseContext<T> : DbContext where T : DbContext
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Log.Error("Sync failed:", e);
|
Log.Error($"Syncing {changesCount} changes {GetType().Name} {trigger?.Name} {reason} failed:", e);
|
||||||
return (false, e.Message);
|
return (false, e.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user