From 01a02e1e5acc4cc910cca9271afb7a655c9b061b Mon Sep 17 00:00:00 2001 From: Justin Littman Date: Tue, 12 Mar 2019 20:52:22 -0400 Subject: [PATCH] Upgraded to Twarc 1.6.3 and set Twarc logging. --- requirements.txt | 2 +- twarccloud/config_helpers.py | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/requirements.txt b/requirements.txt index 8b816ca..53b735d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,6 +3,6 @@ Flask==1.0.2 hurry.filesize==0.9 psutil==5.5.1 requests==2.21.0 -twarc==1.6.1 +twarc==1.6.3 python-dateutil==2.8.0 honeybadger==0.2.0 diff --git a/twarccloud/config_helpers.py b/twarccloud/config_helpers.py index 8c6a491..aec889f 100644 --- a/twarccloud/config_helpers.py +++ b/twarccloud/config_helpers.py @@ -15,14 +15,15 @@ def setup_logging(debug=False): logging.basicConfig(level=logging.DEBUG if debug else logging.INFO) - logging.getLogger("requests").setLevel(logging.INFO) - logging.getLogger("requests_oauthlib").setLevel(logging.INFO) - logging.getLogger("oauthlib").setLevel(logging.INFO) - logging.getLogger("urllib3").setLevel(logging.INFO) - logging.getLogger("botocore").setLevel(logging.INFO) - logging.getLogger("botocore.credentials").setLevel(logging.ERROR) + logging.getLogger('requests').setLevel(logging.INFO) + logging.getLogger('requests_oauthlib').setLevel(logging.INFO) + logging.getLogger('oauthlib').setLevel(logging.INFO) + logging.getLogger('urllib3').setLevel(logging.INFO) + logging.getLogger('botocore').setLevel(logging.INFO) + logging.getLogger('botocore.credentials').setLevel(logging.WARNING) logging.getLogger('s3transfer').setLevel(logging.INFO) logging.getLogger('boto3').setLevel(logging.INFO) + logging.getLogger('twarc').setLevel(logging.WARNING) def setup_honeybadger():