diff --git a/webservice/job_monitor.py b/webservice/job_monitor.py index f54de2dcb8d1a7abf32b23cc2436fbef2d508aa7..12d9ebc125bfb86086ad224b60d0683e7921acee 100644 --- a/webservice/job_monitor.py +++ b/webservice/job_monitor.py @@ -406,6 +406,8 @@ def main(argv=None): ) # DEBUG logs from kafka-python are very verbose, so we'll turn them off logging.getLogger('kafka').setLevel(logging.INFO) + # Likewise requests_oauthlib + logging.getLogger('requests_oauthlib').setLevel(logging.INFO) # Treat SIGTERM like SIGINT (Ctrl-C) & do a clean shutdown signal.signal(signal.SIGTERM, interrupted) diff --git a/webservice/webservice.py b/webservice/webservice.py index 5e49f8f53cf54958d0edbd558944efac47217f78..b1f32b78717899f490ceb076d50ac1650628a3c0 100644 --- a/webservice/webservice.py +++ b/webservice/webservice.py @@ -1526,6 +1526,8 @@ def main(argv: Optional[List[str]] = None): level=getattr(logging, log_level), format=fmt ) + # requests_oauthlib DEBUG logs are very verbose, so we'll turn them off + logging.getLogger('requests_oauthlib').setLevel(logging.INFO) # Ensure that subprocesses (to launch calibration) are launched with the # venv where this is installed, even if it was not activated in a shell.