From ea1ebdb9e4bcfcb3bc31f082a5a5efc7257248b2 Mon Sep 17 00:00:00 2001 From: Alexei Ledenev Date: Tue, 5 Sep 2023 11:05:57 +0300 Subject: [PATCH] rename method (spellfix) --- cmd/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 8c21417..c437d15 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -89,7 +89,7 @@ func run(ctx context.Context, log *logrus.Entry, cfg config.Config) error { return nil } -func prepareLogler(cfg config.Config, c *cli.Context) *logrus.Entry { +func prepareLogger(cfg config.Config, c *cli.Context) *logrus.Entry { logger := logrus.New() // set debug log level @@ -128,7 +128,7 @@ func prepareLogler(cfg config.Config, c *cli.Context) *logrus.Entry { func runCmd(c *cli.Context) error { ctx := signals.SetupSignalHandler() cfg := config.LoadConfig(c) - log := prepareLogler(cfg, c) + log := prepareLogger(cfg, c) if err := run(ctx, log, cfg); err != nil { log.Fatalf("eks-lens agent failed: %v", err)