Added more log when client and logger connect to server.
Fixed client can't reconnect.