Maybe log yaml.dump(chef_json) to avoid potential KeyError exceptions in the case where any of these keys are missing.