Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
violethaze74
amazon-ssm-agent
Commits
2959da82
Commit
2959da82
authored
Jun 22, 2021
by
Vishnu Karthik Ravindran
Committed by
Ivan Aguilar
Jul 07, 2021
Browse files
Correct log message in s3 util
cr:
https://code.amazon.com/reviews/CR-51848492
parent
34655721
Changes
1
Hide whitespace changes
Inline
Side-by-side
agent/s3util/s3util.go
View file @
2959da82
...
...
@@ -96,7 +96,7 @@ func (u *AmazonS3Util) S3Upload(log log.T, bucketName string, objectKey string,
log
.
Infof
(
"Successfully uploaded file to "
,
result
.
Location
)
break
}
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
)
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment