File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ package cache
2
2
3
3
import (
4
4
"context"
5
- "fmt"
6
5
"os"
7
6
"sync"
8
7
9
8
"golang.org/x/tools/go/analysis"
10
9
"golang.org/x/tools/internal/lsp/source"
10
+ "golang.org/x/tools/internal/lsp/telemetry"
11
11
"golang.org/x/tools/internal/span"
12
12
"golang.org/x/tools/internal/telemetry/log"
13
13
)
@@ -144,14 +144,14 @@ func (s *snapshot) KnownPackages(ctx context.Context) []source.Package {
144
144
}
145
145
cph , err := s .checkPackageHandle (ctx , pkgID , mode )
146
146
if err != nil {
147
- log .Error (ctx , fmt . Sprintf ( "cph.Check of %v " , cph . m . pkgPath ), err )
147
+ log .Error (ctx , "failed to create CheckPackageHandle " , err , telemetry . Package . Of ( pkgID ) )
148
148
continue
149
149
}
150
150
// Check the package now if it's not checked yet.
151
151
// TODO(matloob): is this too slow?
152
152
pkg , err := cph .check (ctx )
153
153
if err != nil {
154
- log .Error (ctx , fmt . Sprintf ( "cph.Check of %v " , cph . m . pkgPath ), err )
154
+ log .Error (ctx , "failed to check package " , err , telemetry . Package . Of ( pkgID ) )
155
155
continue
156
156
}
157
157
results = append (results , pkg )
You can’t perform that action at this time.
0 commit comments