Skip to content

Commit

Permalink
Update root.go
Browse files Browse the repository at this point in the history
Changed logConfig timing so log settings from Lambda Env Vars are respected.
  • Loading branch information
ChrisPates committed Mar 1, 2024
1 parent 5339ebd commit 3607b2e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,13 @@ func initConfig() {
log.Fatalf(errors.Wrap(err, "cannot unmarshal config").Error())
}

// config logger
logConfig(cfg)

if cfg.IsLambda {
configLambda()
}

// config logger
logConfig(cfg)

}

func configLambda() {
Expand Down

0 comments on commit 3607b2e

Please sign in to comment.