Reduce some logspam.

This commit is contained in:
Brad Fitzpatrick
2020-03-02 14:54:57 -08:00
parent 61529ac459
commit 657f9593ae
2 changed files with 14 additions and 10 deletions

View File

@@ -226,7 +226,10 @@ func (b *LocalBackend) Start(opts Options) error {
if b.netMapCache != nil && b.cmpDiff != nil {
s1 := strings.Split(b.netMapCache.Concise(), "\n")
s2 := strings.Split(newSt.NetMap.Concise(), "\n")
b.logf("netmap diff:\n%v\n", b.cmpDiff(s1, s2))
diff := b.cmpDiff(s1, s2)
if strings.TrimSpace(diff) != "" {
b.logf("netmap diff:\n%v\n", diff)
}
}
b.netMapCache = newSt.NetMap
b.mu.Unlock()