mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 21:30:16 +02:00
increase verbosity
This commit is contained in:
parent
29dceee8f4
commit
6ac4343213
1 changed files with 4 additions and 0 deletions
|
@ -232,15 +232,18 @@ func ConnectToTCPServer(address, room string) (c *comm.Comm, banner string, err
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
log.Debug("waiting for first ok")
|
||||||
data, err := c.Receive()
|
data, err := c.Receive()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
banner = string(data)
|
banner = string(data)
|
||||||
|
log.Debug("sending room")
|
||||||
err = c.Send([]byte(room))
|
err = c.Send([]byte(room))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
log.Debug("waiting for room confirmation")
|
||||||
data, err = c.Receive()
|
data, err = c.Receive()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
@ -249,5 +252,6 @@ func ConnectToTCPServer(address, room string) (c *comm.Comm, banner string, err
|
||||||
err = fmt.Errorf("got bad response: %s", data)
|
err = fmt.Errorf("got bad response: %s", data)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
log.Debug("all set")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue