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:
parent
7157a0d617
commit
feb1aaabb7
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user