fix log issue, and prettify client log