log plan_code