Fix unevaluated expressions due to logging threshold