mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Silence excessive nogo noise.
PiperOrigin-RevId: 511679657
This commit is contained in:
committed by
gVisor bot
parent
3370d6c007
commit
05d60444e0
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user