Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix format string for ecs-init logging #3282

Merged
merged 1 commit into from
Aug 23, 2022
Merged

fix format string for ecs-init logging #3282

merged 1 commit into from
Aug 23, 2022

Conversation

konoui
Copy link
Contributor

@konoui konoui commented Jul 2, 2022

Summary

fix format string for ecs-init log.

Implementation details

using "%t" instead of "%s".

Currently, ecs init outputs a following log

 [INFO] pre-start: ecs agent container image loaded presence: %!s(bool=true)

docker.IsAgentImageLoaded() returns bool but using "%s" for logging.

https://github.com/aws/amazon-ecs-agent/blob/dev/ecs-init/engine/engine.go#L142

ecs-init repository has same issue. If ecs-init repository requires fix, please let me know.
https://github.com/aws/amazon-ecs-init/blob/master/ecs-init/engine/engine.go#L142

Testing

New tests cover the changes:

Description for the changelog

  • fix format string for ecs-init logging

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@Realmonia Realmonia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@fierlion fierlion merged commit d60d70c into aws:dev Aug 23, 2022
@chienhanlin chienhanlin mentioned this pull request Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants