Eng 7099 disable dr on primary

Use a logger.