Browse Source

Output log if there are items in the entity change list.

pull/20949/head
maliming 2 years ago
parent
commit
825ca9b6bf
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 5
      framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs

5
framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs

@ -263,7 +263,10 @@ public abstract class AbpDbContext<TDbContext> : DbContext, IAbpEfCoreDbContext,
{
EntityHistoryHelper.UpdateChangeList(entityChangeList);
auditLog!.EntityChanges.AddRange(entityChangeList);
Logger.LogDebug($"Added {entityChangeList.Count} entity changes to the current audit log");
if (entityChangeList.Count > 0)
{
Logger.LogDebug($"Added {entityChangeList.Count} entity changes to the current audit log");
}
}
return result;

Loading…
Cancel
Save