Fix incorrect logEvents iterating.
Use map and join to generate body.