Log Output Updates

This commit is contained in:
2023-03-18 12:27:29 -05:00
parent 3f60d34155
commit a8f35ee53d
3 changed files with 6 additions and 3 deletions

View File

@ -206,7 +206,7 @@ func (h *admissionHandler) Serve(hook operations.Hook) http.HandlerFunc {
return
}
log.Printf("[INFO] Webhook [%s - %s] - Allowed: %t", r.URL.Path, review.Request.Operation, result.Allowed)
log.Printf("[INFO] Webhook [%s] - Allowed: %t", review.Request.Operation, result.Allowed)
w.WriteHeader(http.StatusOK)
w.Write(res)
}