From 5913dc890f4f5374d0e21505f30c575c7f42ac4a Mon Sep 17 00:00:00 2001 From: Oscar Tovar Date: Tue, 30 Apr 2024 23:42:27 -0400 Subject: [PATCH] fix(golang): use correct parser logger --- pkg/dependency/parser/golang/binary/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dependency/parser/golang/binary/parse.go b/pkg/dependency/parser/golang/binary/parse.go index 88ccd391c473..5d56e3d7e2cd 100644 --- a/pkg/dependency/parser/golang/binary/parse.go +++ b/pkg/dependency/parser/golang/binary/parse.go @@ -119,7 +119,7 @@ func (p *Parser) ldFlags(settings []debug.BuildSetting) []string { // parseLDFlags attempts to parse the binary's version from any `-ldflags` passed to `go build` at build time. func (p *Parser) parseLDFlags(name string, flags []string) string { - log.Debug("Parsing dependency's build info settings", "dependency", name, "-ldflags", flags) + p.logger.Debug("Parsing dependency's build info settings", "dependency", name, "-ldflags", flags) fset := pflag.NewFlagSet("ldflags", pflag.ContinueOnError) // This prevents the flag set from erroring out if other flags were provided. // This helps keep the implementation small, so that only the -X flag is needed.