Adding some logging around the duplicate key integrity error