Made testing the logCommentData possible by checking log and logErr