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

Log HTTP requests to Observatorium at debug level #21

Merged
merged 1 commit into from
May 9, 2022

Conversation

esnible
Copy link
Contributor

@esnible esnible commented May 5, 2022

I found it difficult to understand what obsctl was doing.

This PR adds debug output to obsctl. To try it do obsctl metrics get rules --log.level=debug and see it now logs "debug: GET: https://observatorium.api.stage.openshift.com/api/metrics/v1/rhobs/api/v1/rules".

Headers are not logged, just the method and URL.

Signed-off-by: Ed Snible <snible@us.ibm.com>
Copy link
Member

@saswatamcode saswatamcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM! 🌟

Copy link
Contributor

@jessicalins jessicalins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@jessicalins jessicalins merged commit cf212e7 into observatorium:main May 9, 2022
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.

3 participants