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

Improve debug log fields when executing requests #21

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

orf
Copy link
Contributor

@orf orf commented Nov 12, 2024

First: this is a fantastic library, thank you! <3

One issue we've run into is that the logs are quite verbose. This MR makes the (very useful) sending/receiving debug! calls add fields with the method, status, uri, status and content length.

This enables one to set a logging directive like rustify::client[{success=false}]=debug to log all unsuccessful requests to the console, whilst skipping successful ones.

I also moved some verbose executing endpoint debug! calls to be trace! instead.

@orf orf force-pushed the tracing branch 8 times, most recently from a336766 to f6ddf0e Compare November 13, 2024 14:31
@stormshield-gt
Copy link
Collaborator

You can rebase on master, #24 should have fix the CI

@orf
Copy link
Contributor Author

orf commented Dec 13, 2024

Done!

@stormshield-gt
Copy link
Collaborator

Thanks for your contribution!

@stormshield-gt stormshield-gt merged commit 1ed432d into jmgilman:master Dec 13, 2024
5 checks passed
@orf
Copy link
Contributor Author

orf commented Dec 13, 2024

No, thank you for accepting it and your work on this library! ❤️

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.

2 participants