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

Would it possible to also log response if it is 200 and in debug mode? #481

Closed
kim5566 opened this issue Sep 6, 2024 · 2 comments
Closed

Comments

@kim5566
Copy link

kim5566 commented Sep 6, 2024

We are utilizing the Segment Python client to transmit analytics events to our host.

We have implemented a custom validation message for successful responses.

Additionally, we would like to enable logging of these messages in DEBUG mode. Is it possible to modify this

log.debug('data uploaded successfully')
so that it also logs res.json()?

Happy to make code change if accepted

Thank you in advance!

@nd4p90x
Copy link
Collaborator

nd4p90x commented Sep 25, 2024

@kim5566

Please feel free to submit a change request for this.

Thank you!

@kim5566
Copy link
Author

kim5566 commented Oct 11, 2024

Thanks for your response! @nd4p90x i have raised the PR here: #491

@kim5566 kim5566 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2024
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

No branches or pull requests

2 participants