Skip to content

Commit

Permalink
🐛 handle --name argument in yaml provider
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <[email protected]>
  • Loading branch information
pranavgaikwad committed Feb 20, 2024
1 parent 126bc83 commit b2df101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions external-providers/yq-external-provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ 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)
logrusLog.SetFormatter(&logrus.TextFormatter{})
// 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()

Expand Down

0 comments on commit b2df101

Please sign in to comment.