From 5b0dd16819d03e850fcf639522edf48c6c28658d Mon Sep 17 00:00:00 2001 From: Craig Johnston Date: Thu, 28 Jan 2021 15:56:22 -0800 Subject: [PATCH] added debug level for response. --- amp.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amp.go b/amp.go index 7673844..4f537a6 100644 --- a/amp.go +++ b/amp.go @@ -140,7 +140,8 @@ func (a *Api) AdmissionReviewHandler(admissionReview AdmissionReview) gin.Handle responseAdmissionReview.Kind = "AdmissionReview" responseAdmissionReview.APIVersion = "admission.k8s.io/v1" - a.Log.Info("Returning response to Kubernetes", zap.ByteString("value", responseAdmissionReview.Response.Patch)) + a.Log.Info("Returning response to Kubernetes") + a.Log.Debug("Response debugging, responseAdmissionReview", zap.ByteString("value", responseAdmissionReview.Response.Patch)) c.JSON(http.StatusOK, responseAdmissionReview) }