From b2df10123e29e7162fb579dd8b511eaf1a6dfbad Mon Sep 17 00:00:00 2001 From: Pranav Gaikwad Date: Tue, 20 Feb 2024 13:24:43 -0500 Subject: [PATCH] :bug: handle --name argument in yaml provider Signed-off-by: Pranav Gaikwad --- external-providers/yq-external-provider/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/external-providers/yq-external-provider/main.go b/external-providers/yq-external-provider/main.go index 47f3cf11..b33071d6 100644 --- a/external-providers/yq-external-provider/main.go +++ b/external-providers/yq-external-provider/main.go @@ -14,10 +14,10 @@ import ( var ( port = flag.Int("port", 0, "Port must be set") + name = flag.String("name", "yaml", "Port must be set") ) func main() { - flag.Parse() logrusLog := logrus.New() logrusLog.SetOutput(os.Stdout) @@ -25,7 +25,7 @@ func main() { // need to do research on mapping in logrusr to level here TODO logrusLog.SetLevel(logrus.Level(5)) - log := logrusr.New(logrusLog) + log := logrusr.New(logrusLog).WithName(*name) client := yq_provider.NewYqProvider()