Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

575 log SearchRequest content in debug logs #606

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Conversation

alexdunnjpl
Copy link
Contributor

🗒️ Summary

'nuf said

⚙️ Test Data and/or Report

Manually tested, but unable to test with up-to-date code due to #605

Given a request to http://localhost:8081/products/somerandomproductid::2.1 the following log message is observed:

2025-01-23T15:39:31.010-08:00 DEBUG 58257 --- [nio-8081-exec-3] g.n.p.a.r.s.RegistrySearchRequestBuilder : Generated OpenSearch SearchRequest with query:
{
  "query" : {
    "bool" : {
      "must" : [ {
        "terms" : {
          "ops:Tracking_Meta/ops:archive_status" : [ "archived", "certified" ]
        }
      }, {
        "match" : {
          "_id" : {
            "query" : "somerandomproductid::2.1"
          }
        }
      } ]
    }
  },
  "track_total_hits" : true
}

♻️ Related Issues

fixes #575

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

As application support, I want to see in the server side logs the full query being sent to OpenSearch
1 participant