From feb1aaabb7f7c25a6c3a4aab048d1329c6866d2d Mon Sep 17 00:00:00 2001 From: Alexander Hughes Date: Wed, 16 Dec 2020 14:58:36 -0500 Subject: [PATCH] Replace deprecated zap.LoggerTo command zap.LoggerTo is deprecated, please see [0] and suggested remediation which was implemented in this patch. [0] https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/log/zap@v0.5.0#LoggerTo Signed-off-by: Alexander Hughes Change-Id: I72ec3e859cf891748e6c37bac23be6383da14486 --- controllers/suite_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/suite_test.go b/controllers/suite_test.go index 4b06492..403681f 100644 --- a/controllers/suite_test.go +++ b/controllers/suite_test.go @@ -50,7 +50,7 @@ func TestAPIs(t *testing.T) { } var _ = BeforeSuite(func(done Done) { - logf.SetLogger(zap.LoggerTo(GinkgoWriter, true)) + logf.SetLogger(zap.New(zap.UseDevMode(true), zap.WriteTo(GinkgoWriter))) By("bootstrapping test environment") testEnv = &envtest.Environment{