mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-20 17:26:40 +00:00
add method timing logs
This commit is contained in:
@@ -5,6 +5,8 @@ import (
|
||||
"net"
|
||||
"net/netip"
|
||||
"time"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// Peer represents a machine connected to the network.
|
||||
@@ -173,6 +175,8 @@ func (p *Peer) UpdateMetaIfNew(meta PeerSystemMeta) bool {
|
||||
meta.UIVersion = p.Meta.UIVersion
|
||||
}
|
||||
|
||||
log.Infof("Check if meta is equal: %v", p.Meta.isEqual(meta))
|
||||
|
||||
if p.Meta.isEqual(meta) {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user