From d038a5295d3706a2da54f8f08c92f3b73770c594 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 22 Feb 2021 21:57:51 -0800 Subject: [PATCH] wgengine/wglog: drop 1/s "interface is up" messages. Fixes #1388. Signed-off-by: David Anderson --- wgengine/wglog/wglog.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wgengine/wglog/wglog.go b/wgengine/wglog/wglog.go index ed3827b4e..a0df94a75 100644 --- a/wgengine/wglog/wglog.go +++ b/wgengine/wglog/wglog.go @@ -40,6 +40,11 @@ func NewLogger(logf logger.Logf) *Logger { // Drop. See https://github.com/tailscale/tailscale/issues/1239. return } + if strings.Contains(msg, "Interface up requested") || strings.Contains(msg, "Interface down requested") { + // Drop. Logs 1/s constantly while the tun device is open. + // See https://github.com/tailscale/tailscale/issues/1388. + return + } r := ret.replacer.Load() if r == nil { // No replacements specified; log as originally planned.