diff --git a/pkg/util/leaktest/leaktest.go b/pkg/util/leaktest/leaktest.go index ecbb3434b11b..879e2547725e 100644 --- a/pkg/util/leaktest/leaktest.go +++ b/pkg/util/leaktest/leaktest.go @@ -58,6 +58,10 @@ func interestingGoroutines() map[int64]string { strings.Contains(stack, "sentry-go.(*HTTPTransport).worker") || // Seems to be gccgo specific. (runtime.Compiler == "gccgo" && strings.Contains(stack, "testing.T.Parallel")) || + // Ignore intentionally long-running logging goroutines that live for the + // duration of the process. + strings.Contains(stack, "log.flushDaemon") || + strings.Contains(stack, "log.signalFlusher") || // Below are the stacks ignored by the upstream leaktest code. strings.Contains(stack, "testing.Main(") || strings.Contains(stack, "testing.tRunner(") ||