conditionally prevent generation of logging content (speedier)