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 <Alexander.Hughes@pm.me>
Change-Id: I72ec3e859cf891748e6c37bac23be6383da14486
This commit is contained in:
Alexander Hughes 2020-12-16 14:58:36 -05:00
parent 7157a0d617
commit feb1aaabb7

View File

@ -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{