Move Validator log statement so that it is only printed when the validator is being generated.