From 05d60444e02bedbaec25fe8b8f48f0a7e4b8cba1 Mon Sep 17 00:00:00 2001 From: Adin Scannell Date: Wed, 22 Feb 2023 21:15:58 -0800 Subject: [PATCH] Silence excessive nogo noise. PiperOrigin-RevId: 511679657 --- tools/nogo/check/check.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/nogo/check/check.go b/tools/nogo/check/check.go index 35d31c0ac..fb38a0c16 100644 --- a/tools/nogo/check/check.go +++ b/tools/nogo/check/check.go @@ -27,7 +27,6 @@ import ( "go/token" "go/types" "io" - "log" "os" "path" "path/filepath" @@ -213,9 +212,9 @@ func (i *importer) fastFacts(pkg *types.Package) *facts.Package { // Load the facts. facts, err := i.loadFacts(pkg) if err != nil { - // We have no available to propagate an error when attempting - // to import a fact, so we must simply issue a warning. - log.Printf("WARNING: error loading facts for %s: %v", pkg.Path(), err) + // There are no facts available, but no good way to propagate + // this minor error. It may be intentional that no analysis was + // performed on some part of the standard library, for example. return nil } e.facts = facts // Cache the result.