Commit 6f7ed090 authored by rui.zheng's avatar rui.zheng

improve log print

parent 8f9f4d99
......@@ -61,7 +61,7 @@ func (conn *HttpClientConn) Handshake() (err error) {
return err
}
if uuid.Parse(string(b)) == nil {
return errors.New("wrong token")
return errors.New("Handshake: wrong token")
}
conn.token = string(b)
conn.r = resp.Body
......@@ -98,7 +98,7 @@ func (conn *HttpClientConn) Write(b []byte) (n int, err error) {
resp.Body.Close()
if resp.StatusCode != http.StatusOK {
log.Println(resp.Status)
//log.Println(resp.Status)
return 0, errors.New(resp.Status)
}
//log.Println("http w:", len(b))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment