1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:28:32 -06:00

internal/lsp: turn off go/packages debug logging

Change-Id: I810cff76e6920156f959643f0d16d10b595d9708
Reviewed-on: https://go-review.googlesource.com/c/tools/+/202043
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
This commit is contained in:
Rebecca Stambler 2019-10-18 17:24:26 -04:00
parent 04252eccb9
commit ed542cd5b2

View File

@ -257,8 +257,10 @@ func Load(t testing.TB, exporter packagestest.Exporter, dir string) *Data {
filename := data.Exported.File(testModule, fragment)
data.fragments[filename] = fragment
}
data.Exported.Config.Logf = t.Logf
data.Config.Logf = t.Logf
// Turn off go/packages debug logging.
data.Exported.Config.Logf = nil
data.Config.Logf = nil
// Merge the exported.Config with the view.Config.
data.Config = *data.Exported.Config