Skip to content

Commit

Permalink
added debug level for response.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjimti committed Jan 28, 2021
1 parent 939b139 commit 5b0dd16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion amp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 5b0dd16

Please sign in to comment.