log multipart messages correctly