diff --git a/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs b/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs index 15887933ba3..abcdb97a5a5 100644 --- a/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs +++ b/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs @@ -263,7 +263,10 @@ public override async Task SaveChangesAsync(bool acceptAllChangesOnSuccess, { 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;