Avoid duplicate debug logs.

This commit is contained in:
Milos Gajdos 2019-08-29 16:58:07 +01:00
parent 690640eeeb
commit e7d8cdda44
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F

View File

@ -447,7 +447,7 @@ func (t *tun) keepalive(link *link) {
// setupLink connects to node and returns link if successful // setupLink connects to node and returns link if successful
// It returns error if the link failed to be established // It returns error if the link failed to be established
func (t *tun) setupLink(node string) (*link, error) { func (t *tun) setupLink(node string) (*link, error) {
log.Debugf("Tunnel dialing %s", node) log.Debugf("Tunnel setting up link: %s", node)
c, err := t.options.Transport.Dial(node) c, err := t.options.Transport.Dial(node)
if err != nil { if err != nil {
log.Debugf("Tunnel failed to connect to %s: %v", node, err) log.Debugf("Tunnel failed to connect to %s: %v", node, err)