0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

debugging

This commit is contained in:
Zack Scholl 2021-10-02 12:23:36 -07:00
parent ce628ea604
commit 1637765aad

View file

@ -49,8 +49,10 @@ func NewConnection(address string, timelimit ...time.Duration) (c *Comm, err err
log.Debug(err) log.Debug(err)
return return
} }
log.Debug("dialing with dialer.Dial")
connection, err = dialer.Dial("tcp", address) connection, err = dialer.Dial("tcp", address)
} else { } else {
log.Debugf("dialing to %s with timelimit %s", address, tlimit)
connection, err = net.DialTimeout("tcp", address, tlimit) connection, err = net.DialTimeout("tcp", address, tlimit)
} }
if err != nil { if err != nil {