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

[CCXDEV-12944] Log the headers of the request (not the authorization one) #231

Merged
merged 3 commits into from
Jun 18, 2024

Conversation

juandspy
Copy link
Contributor

@juandspy juandspy commented Jun 18, 2024

Description

We need to check if we receive the Cluster ID from the Insights Operator. These debug logs will print all the headers we receive per request. As the debug level on stage and prod is INFO, this will not increase the current amount of logs but rather be enabled by changing the corresponding environment variable.

Type of change

  • New feature (non-breaking change which adds functionality)
  • Unit tests (no changes in the code)
  • Configuration update

Testing steps

  • go test -v -run TestLogHeaders ./internal/service/...
  • CI

Checklist

  • make before_commit passes
  • updated documentation wherever necessary
  • added or modified tests if necessary
  • updated schemas and validators in insights-data-schemas in case of input/output change

@juandspy juandspy merged commit 8e0fa51 into RedHatInsights:main Jun 18, 2024
8 checks passed
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.

None yet

2 participants