Skip to content

Commit

Permalink
Merge pull request #20949 from abpframework/entityChangeList
Browse files Browse the repository at this point in the history
Output log if there are items in the entity change list.
  • Loading branch information
ebicoglu authored Oct 2, 2024
2 parents 762585a + 825ca9b commit 0a35076
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ public override async Task<int> 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;
Expand Down

0 comments on commit 0a35076

Please sign in to comment.