Skip to content

Commit

Permalink
fix: set config logger
Browse files Browse the repository at this point in the history
Config logger ensures that logs during config loading get printed.
  • Loading branch information
darkowlzz committed Jun 24, 2024
1 parent c6b7a1e commit c7cf885
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/commands/nuke/nuke.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func execute(c *cli.Context) error { //nolint:funlen,gocyclo
parsedConfig, err := config.New(libconfig.Options{
Path: c.Path("config"),
Deprecations: registry.GetDeprecatedResourceTypeMapping(),
Log: logrus.WithField("component", "config"),
})
if err != nil {
logrus.Errorf("Failed to parse config file %s", c.Path("config"))
Expand Down

0 comments on commit c7cf885

Please sign in to comment.