Make logger.debug more efficient when debug not true.
Bug 454261 - Performance issue with LOGGER.debug in SidACL