Reduce log messages to measure throughput with failures and add retry code