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 logging to HTTPClient and Credentials #96

Closed
sserrata opened this issue Aug 14, 2018 · 1 comment
Closed

Add logging to HTTPClient and Credentials #96

sserrata opened this issue Aug 14, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@sserrata
Copy link
Member

  • Palo Alto Networks Cloud Python SDK version: v1.3.0
  • Python version: 2.7, 3.5+
  • Operating System: any

Description

Although the underlying requests library is capable of low-level logging the pancloud HTTPClient and Credentials classes do not currently offer any additional logging to assist with troubleshooting and debugging.

Proposed solution

Add sensible logging to HTTPClient and Credentials classes for operations unique to pancloud, such as:

  • Applying credentials to header
  • Setting default headers
  • Auto-refresh and auto-retry
  • Token refresh
  • Credential resolution
  • Fetch tokens
  • Initializing storage adapter
  • Removing profiles
  • Revoke access/refresh token
  • Write credentials
  • Checking for expired access token
  • Decoding exp field from access token
@sserrata sserrata added the enhancement New feature or request label Aug 14, 2018
@sserrata sserrata self-assigned this Aug 14, 2018
@sserrata sserrata changed the title Add debug logs to HTTPClient and Credentials Add logging to HTTPClient and Credentials Aug 14, 2018
@sserrata
Copy link
Member Author

Sensible logging has been added to both HTTPClient and Credentials classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants