diff --git a/Apis/cv-matcher-data/Repositories/EfMatcherRepository.cs b/Apis/cv-matcher-data/Repositories/EfMatcherRepository.cs index 504fd0c..651dcea 100644 --- a/Apis/cv-matcher-data/Repositories/EfMatcherRepository.cs +++ b/Apis/cv-matcher-data/Repositories/EfMatcherRepository.cs @@ -68,6 +68,10 @@ public sealed class EfMatcherRepository : IMatcherRepository { // Duplicate key violation: record was inserted between the AnyAsync check and SaveChangesAsync. // This is safe to ignore — the match result already exists in the database. + _logger.LogWarning( + "Duplicate match result ignored: CV={CvDocumentId} Job={JobDocumentId} Language={Language}. " + + "Record was likely inserted concurrently. This is expected behavior in high-concurrency scenarios.", + cvDocumentId, jobDocumentId, language); } }