-
Notifications
You must be signed in to change notification settings - Fork 436
Log RequestOptions params #1070
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
Log RequestOptions params #1070
Conversation
@jorwoods this looks like a nice addition. Any concerns about logging sensitive information here? I believe at the DEBUG level we're already logging the full request & response, so adding this doesn't log anything new or worse. |
@bcantoni I thought about this and do not think it will contain sensitive information. All of the sensitive information that gets passed is in the body of requests, not in what gets passed as part of the query string. (Unless there is a case I am forgetting about) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree - also it's only under debug level which is logging a bunch from all the other requests. Nice addition!
* Datasources: Use explicit None identity check for datasource updates (#1099) (Resolves #1062 - cannot set empty password) * Projects: add publish-samples option to create/update project * Workbooks: fix workbook.delete_extract, add workbook pdf download, make project_id nullable to support "Personal Space", Remove vf support from populate_excel, make hidden views an attribute of Workbooks and deprecate hidden_views flag in publish request * Schedules: add get_by_id method * Users: Reassign content on user removal, add user import logic * Jobs: Add Status, ParentProjectId and StartedAt filters, Extract refreshable item IDs from job XML response * Sites: Add version awareness to site create/update methods: Update sites requests for Breaking change in 3.10: flowsEnabled removed, flowsEditingEnabled and flowsSchedulingEnabled added ,Allow setting site user_quota to None if tiered licenses exist * Do not eagerly fetch content when a stream was requested * create single Credentials class (#1032), Included redacted print methods for each credential type * on init set use_server_version = False so that we don't try and contact the server before people finish setting certs * add client version/debug header * Logging: log RequestOptions params (#1070), add redaction method to remove passwords when logging requests and responses, which can contain embedded credentials, log the url of the request that got an error in the response. * fix filter for python 3, remove support for python 3.6 (add python version enforcement in setup.py) * Fix slicing logic, add tests for queryset slicing crossing a page, add support for len magic method to queryset * Add type hints for workbook and data source revisions, data alerts, Favorites, Flows, groups, permissions, projects, sites, subscriptions, Users, webhooks * Samples: fix export sample, delete redundant samples (export_wb, download_view_image), add user import sample, default permissions sample * add publish to pypi actio, enable Black for CI, consolidate config files into pyproject.toml co-authored-by: Amar Yadav <AmarKumar.Yadav@genmills.com> Co-authored-by: Jac <jacalata@users.noreply.github.com> Co-authored-by: Stephen Mitchell <scum@mac.com> Co-authored-by: jorwoods <jorwoods@users.noreply.github.com> Co-authored-by: Brian Cantoni <bcantoni@salesforce.com> Co-authored-by: Tyler Doyle <doyle.tyler@gmail.com> Co-authored-by: bcmyguest1 <49045013+bcmyguest1@users.noreply.github.com>
Write RequestOptions params to debug log. This is helpful when troubleshooting requests to see how filters get applied.