1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-28 17:44:51 +03:00

increase verbosity

This commit is contained in:
Zack Scholl 2019-05-01 11:45:13 -06:00
parent 29dceee8f4
commit 6ac4343213

View File

@ -232,15 +232,18 @@ func ConnectToTCPServer(address, room string) (c *comm.Comm, banner string, err
if err != nil {
return
}
log.Debug("waiting for first ok")
data, err := c.Receive()
if err != nil {
return
}
banner = string(data)
log.Debug("sending room")
err = c.Send([]byte(room))
if err != nil {
return
}
log.Debug("waiting for room confirmation")
data, err = c.Receive()
if err != nil {
return
@ -249,5 +252,6 @@ func ConnectToTCPServer(address, room string) (c *comm.Comm, banner string, err
err = fmt.Errorf("got bad response: %s", data)
return
}
log.Debug("all set")
return
}