Skip to content

Commit

Permalink
runtime: Remove deprecation warning for ?watch flag
Browse files Browse the repository at this point in the history
The watch feature was removed ~2.5 years ago in
faab37c so it should be fine to
remove the corresponding log message.

Signed-off-by: Torin Sandall <torin@styra.com>
  • Loading branch information
tsandall committed Mar 20, 2023
1 parent f57c1b6 commit 0997f8f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions runtime/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}
Expand Down

0 comments on commit 0997f8f

Please sign in to comment.