Commit 2959da82 authored by Vishnu Karthik Ravindran's avatar Vishnu Karthik Ravindran Committed by Ivan Aguilar
Browse files

Correct log message in s3 util

cr: https://code.amazon.com/reviews/CR-51848492
parent 34655721
...@@ -96,7 +96,7 @@ func (u *AmazonS3Util) S3Upload(log log.T, bucketName string, objectKey string, ...@@ -96,7 +96,7 @@ func (u *AmazonS3Util) S3Upload(log log.T, bucketName string, objectKey string,
log.Infof("Successfully uploaded file to ", result.Location) log.Infof("Successfully uploaded file to ", result.Location)
break break
} else { } else {
log.Errorf("Attempt %s: Failed uploading %v to s3://%v/%v err:%v ", attempt, filePath, bucketName, objectKey, err) log.Errorf("Attempt %v: Failed uploading %v to s3://%v/%v err:%v ", attempt, filePath, bucketName, objectKey, err)
time.Sleep(time.Duration(math.Pow(2, float64(attempt))*100) * time.Millisecond) time.Sleep(time.Duration(math.Pow(2, float64(attempt))*100) * time.Millisecond)
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment