idk, usually dogs eat grass to help whatever is upsetting their stomach come out. but i have seen dogs throw-up foam and then be fine. so if he pooped/peed fine and is looking like himself again, i wouldnt worry about it.