Fix for ENG-4064, log message not protected by predicate