diff --git a/wgengine/magicsock/endpoint.go b/wgengine/magicsock/endpoint.go index 3f65b2ae6..823a702d1 100644 --- a/wgengine/magicsock/endpoint.go +++ b/wgengine/magicsock/endpoint.go @@ -150,7 +150,7 @@ func (de *endpoint) setBestAddrLocked(v addrQuality) { } // Regardless whether the netmap is cached, record how long it has // been since the endpoint was initialized. - de.c.logf("magicsock: new contact: peer=%s usec=%d cached=%v via=direct", + de.c.logf("[v1] magicsock: new contact: peer=%s usec=%d cached=%v via=direct", de.publicKey.ShortString(), int64(mono.Since(de.c.initializedAt)/time.Microsecond), isCached) } } diff --git a/wgengine/magicsock/magicsock.go b/wgengine/magicsock/magicsock.go index bcf552fc3..84de9fc7e 100644 --- a/wgengine/magicsock/magicsock.go +++ b/wgengine/magicsock/magicsock.go @@ -2405,7 +2405,7 @@ func (c *Conn) handleDiscoMessage(msg []byte, src epAddr, shouldBeRelayHandshake // If we did not already have an endpoint for this peer, even a stale // one, record how long it has been since the endpoint was initialized. if !lastBest.ap.IsValid() { - c.logf("magicsock: new contact: peer=%s usec=%d cached=%v via=derp", + c.logf("[v1] magicsock: new contact: peer=%s usec=%d cached=%v via=derp", nodeKey.ShortString(), int64(mono.Since(c.initializedAt)/time.Microsecond), isCached) } if isVia { @@ -3089,7 +3089,7 @@ func (c *Conn) setNetworkMapInternal(self tailcfg.NodeView, peers []tailcfg.Node if self.Valid() && !selfWasValid { // Reaching here, we have our first "real" netmap (self is valid, and // the previous netmap was unset or reset), so record the latency from reset. - c.logf("magicsock: new contact: control-netmap usec=%d cached=%v", + c.logf("[v1] magicsock: new contact: control-netmap usec=%d cached=%v", int64(mono.Since(initializedAt)/time.Microsecond), isCached) }