Eng 7099 disable dr on primary

Agree with @afrogers. If these states are only used to generate debug log messages, then log guard seems appropriate. Otherwise, a Java property would do the job.