netcheck, stunner: reduce log spam

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2020-02-28 09:40:25 -08:00
parent 19b54d0ae7
commit f3c0ea23d9
3 changed files with 8 additions and 4 deletions

View File

@@ -91,7 +91,6 @@ func GetReport(ctx context.Context, logf logger.Logf) (*Report, error) {
logf("ReadFrom: unexpected addr %T", addr)
continue
}
logf("Packet from %v: %q", ua, buf[:n])
s.Receive(buf[:n], ua)
}
@@ -120,7 +119,9 @@ func GetReport(ctx context.Context, logf logger.Logf) (*Report, error) {
}
err = grp.Wait()
logf("stunner.Run: %v", err)
if err != nil {
return nil, err
}
mu.Lock()
defer mu.Unlock() // unnecessary, but feels weird without