Skip to content

Commit 70b44c8

Browse files
authored
Merge pull request #22250 from github/mbg/go/reduce-extraction-noise
Go: Reduce package processing log messages to `debug` level
2 parents 1764c65 + 73cceff commit 70b44c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

go/extractor/extractor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,13 @@ func ExtractWithFlags(buildFlags []string, patterns []string, extractTests bool,
232232
// This should only cause some wasted time and not inconsistency because the names for
233233
// objects seen in this process should be the same each time.
234234

235-
log.Printf("Processing package %s.", pkg.PkgPath)
235+
slog.Debug("Processing package", "package", pkg.PkgPath)
236236

237237
if _, ok := pkgInfos[pkg.PkgPath]; !ok {
238238
pkgInfos[pkg.PkgPath] = toolchain.GetPkgInfo(pkg.PkgPath, modFlags...)
239239
}
240240

241-
log.Printf("Extracting types for package %s.", pkg.PkgPath)
241+
slog.Debug("Extracting types for package", "package", pkg.PkgPath)
242242

243243
tw, err := trap.NewWriter(pkg.PkgPath, pkg)
244244
if err != nil {

0 commit comments

Comments
 (0)