add method timing logs

This commit is contained in:
Pascal Fischer
2024-04-25 14:15:36 +02:00
parent 7b254cb966
commit 8f8cfcbc20
6 changed files with 75 additions and 25 deletions

View File

@@ -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
}