Fixed some bugs of v2 log endpoints.