Skip to content

Commit

Permalink
rename method (spellfix)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexei-led committed Sep 5, 2023
1 parent 645370c commit ea1ebdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ea1ebdb

Please sign in to comment.