ENG-6162: Fix debug logging fail.