From 0997f8f4e80a8f9c0eda677a6af1a85ca0b8be10 Mon Sep 17 00:00:00 2001 From: Torin Sandall Date: Mon, 20 Mar 2023 09:57:39 -0700 Subject: [PATCH] runtime: Remove deprecation warning for ?watch flag The watch feature was removed ~2.5 years ago in faab37c37ebd87a262118d4fc3fcc4a8bded4854 so it should be fine to remove the corresponding log message. Signed-off-by: Torin Sandall --- runtime/logging.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/runtime/logging.go b/runtime/logging.go index f18450ca5be..7303d06c415 100644 --- a/runtime/logging.go +++ b/runtime/logging.go @@ -109,10 +109,6 @@ func (h *LoggingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { params := r.URL.Query() - if _, ok := params["watch"]; ok { - h.logger.Warn("Deprecated 'watch' parameter specified in request. See https://github.com/open-policy-agent/opa/releases/tag/v0.23.0 for details.") - } - if _, ok := params["partial"]; ok { h.logger.Warn("Deprecated 'partial' parameter specified in request. See https://github.com/open-policy-agent/opa/releases/tag/v0.23.0 for details.") }