Skip to content

Commit

Permalink
Upgraded to Twarc 1.6.3 and set Twarc logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinlittman committed Mar 13, 2019
1 parent a4bd936 commit 01a02e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 7 additions & 6 deletions twarccloud/config_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 01a02e1

Please sign in to comment.