log data instead of insert until error is found