From 3ad7c2133a9b3e71e48a8ed2593ba4da2bebabdc Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Thu, 14 Jan 2021 15:25:22 -0800 Subject: [PATCH] wgengine/userspace: make wireguard-go log silencing include peer routines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also suppress log lines like: peer(Kksd…ySmc) - Routine: sequential sender - stopped Signed-off-by: Josh Bleecher Snyder --- wgengine/userspace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgengine/userspace.go b/wgengine/userspace.go index d15579080..a3e761fb5 100644 --- a/wgengine/userspace.go +++ b/wgengine/userspace.go @@ -282,7 +282,7 @@ func newUserspaceEngineAdvanced(conf EngineConfig) (_ Engine, reterr error) { // wireguard-go logs as it starts and stops routines. // Silence those; there are a lot of them, and they're just noise. allowLogf := func(s string) bool { - return !strings.HasPrefix(s, "Routine:") + return !strings.Contains(s, "Routine:") } filtered := logger.Filtered(logf, allowLogf) // flags==0 because logf is already nested in another logger.