Change print to log in post.