-
Notifications
You must be signed in to change notification settings - Fork 1
Add request/response debug logging #13
Copy link
Copy link
Open
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignCampaign: Official Campaignarea:httppriority:p3type:feature
Metadata
Metadata
Assignees
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignCampaign: Official Campaignarea:httppriority:p3type:feature
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
When debugging integration issues, developers need visibility into what the SDK is sending and receiving. A debug mode should log outgoing requests (method, URL, headers, body) and incoming responses (status, headers, body), with sensitive values masked.
Proposed Steps
debug: bool = FalsetoShadeClientand global config.debug=True, emit structured logs via Python'sloggingmodule under theshadelogger.Authorizationheader value in logs (show only last 4 characters).[truncated]suffix.Acceptance Criteria
debug=True, each request logs method, URL, and masked headers.debug=False(default), no request/response content is logged.logging.DEBUGlevel so they don't appear unless the app enables them.