From c7cf88577d806f7d5d55193eeb8427284c588b44 Mon Sep 17 00:00:00 2001 From: Sunny Date: Mon, 24 Jun 2024 15:19:33 +0000 Subject: [PATCH] fix: set config logger Config logger ensures that logs during config loading get printed. --- pkg/commands/nuke/nuke.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/commands/nuke/nuke.go b/pkg/commands/nuke/nuke.go index 3a4f6237..b0d17340 100644 --- a/pkg/commands/nuke/nuke.go +++ b/pkg/commands/nuke/nuke.go @@ -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"))