wgengine/wglog: don't log failure to send data packets

Fixes #1239
This commit is contained in:
Josh Bleecher Snyder 2021-02-01 14:37:58 -08:00 committed by Josh Bleecher Snyder
parent 516e8a4838
commit 717c715c96
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,10 @@ func NewLogger(logf logger.Logf) *Logger {
// Drop those; there are a lot of them, and they're just noise.
return
}
if strings.Contains(msg, "Failed to send data packet") {
// Drop. See https://github.com/tailscale/tailscale/issues/1239.
return
}
r := ret.replacer.Load()
if r == nil {
// No replacements specified; log as originally planned.