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

Add optional debugging logging for each request/response #67

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

erichare
Copy link
Collaborator

No description provided.

logger.debug(f"Request headers: {r.request.headers}")

if json_data:
logger.debug(f"Request payload: {json_data}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Proposal for the next iteration: this goes to logger.info, with the json_data stripped by what look like vectors (with a placeholder instead), and logger.debug with the full vector (?)

@erichare erichare merged commit 92ee455 into master Oct 30, 2023
1 check failed
@erichare erichare deleted the feature/#23-logging branch October 30, 2023 16:50
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