Skip to content

Don't keep DEBUG level logging from requests_oauthlib

Thomas Kluyver requested to merge fix/rm-requests-oauthlib-debug into master

Description

requests_oauthlib debug-level logging puts the authorisation token (short-lived) into logs, which isn't ideal. It also adds several lines of logging on every requests to myMdC, contributing to logs which can reach hundreds of MB. This cuts out debugging log messages specifically from requests_oauthlib.

How Has This Been Tested?

Deployed on max-exfl-cal002, launched a calibration from test myMdC, checked both log files (web.log & monitor.log) to see that these log messages don't show up.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the code style of this project.

Reviewers

@ahmedk @schmidtp

Merge request reports