From c50f13b08682a8fe73d3c98c12ac1aef903cf09d Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 20 Aug 2024 11:49:33 +0200 Subject: [PATCH] lint: Fix non-constant format string error 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 --- cmd/gvproxy/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gvproxy/main.go b/cmd/gvproxy/main.go index 2181de5af..13e92c292 100644 --- a/cmd/gvproxy/main.go +++ b/cmd/gvproxy/main.go @@ -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)