linuxdynasty / awsretry

Decorate your AWS Boto3 Calls with AWSRetry.backoff(). This will allows your calls to get around the AWS Eventual Consistency Errors.
45 stars 21 forks source link

Use logging rather than syslog #4

Closed jhart-r7 closed 6 years ago

jhart-r7 commented 6 years ago

This simply moves away from syslog so that this code will more readily work on non-Linux systems. I tested this locally with one of our problematic bits of boto code (well, it isn't boto that is problematic so much as it is the S3-compatible service we are interfacing with...):

2018-03-14 11:08:31,052 root         WARNING    An error occurred (504) when calling the HeadObject operation (reached max retries: 4): Gateway Timeout: Retrying in 3 seconds...

I've also fixed a variety of other little things I noticed along the way that hinder development and testing. Any feedback is much appreciated.

Thanks for looking!