Skip to content

Commit 26ee5df

Browse files
chore: pass exception
1 parent 79ef2cc commit 26ee5df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

application/CohortManager/src/Functions/screeningDataServices/ReferenceDataUpdater/ReferenceDataInsertHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private async Task<bool> InsertIntoDatabase(string dataType, Type entityType, ob
107107
}
108108
catch (DbUpdateException ex) when (IsPrimaryKeyViolation(ex))
109109
{
110-
_logger.LogWarning("Duplicate record detected for type {DataType}. Skipping insert.", dataType);
110+
_logger.LogWarning(ex, "Duplicate record detected for type {DataType}. Skipping insert.", dataType);
111111
return false;
112112
}
113113
catch (Exception ex)

0 commit comments

Comments
 (0)