mirror of
https://github.com/ginuerzh/gost.git
synced 2024-04-21 12:31:34 +00:00
improve log print
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user