Skip to content

Commit

Permalink
lint: Fix non-constant format string error
Browse files Browse the repository at this point in the history
This fixes
cmd/gvproxy/main.go:106:12: printf: non-constant format string in call to github.com/sirupsen/logrus.Infof (govet)
	log.Infof(version.String())
	          ^
make: *** [Makefile:49: lint] Error 1

Signed-off-by: Christophe Fergeau <[email protected]>
  • Loading branch information
cfergeau committed Aug 20, 2024
1 parent 22a0369 commit 1a6a875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gvproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func main() {
log.Debugf("command line: %q", os.Args)
}

log.Infof(version.String())
log.Info(version.String())
ctx, cancel := context.WithCancel(context.Background())
// Make this the last defer statement in the stack
defer os.Exit(exitCode)
Expand Down

0 comments on commit 1a6a875

Please sign in to comment.