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

Improve log readability #3134

Merged
merged 1 commit into from
Feb 24, 2022
Merged

Improve log readability #3134

merged 1 commit into from
Feb 24, 2022

Conversation

angelcar
Copy link
Contributor

@angelcar angelcar commented Feb 22, 2022

Summary

This PR is to improve the readability of ECS agent logs. The code changes don't include any major changes in logic, only changes to logging.

Implementation details

Expanded the use of structured logger to improve most relevant logs. In order to decrease verbosity, now we log ony task id instead of the full task arn, which should be sufficient.

Testing

  • Unit tests
  • Integ tests

New tests cover the changes: yes

Description for the changelog

  • Enhancement - Improve log readability

Licensing

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

@angelcar angelcar force-pushed the log-improvement-round-2 branch 12 times, most recently from c5a8c6d to 3a94531 Compare February 22, 2022 21:43
@angelcar angelcar marked this pull request as ready for review February 22, 2022 21:51
@angelcar angelcar changed the title WIP: Improve logs Improve log readability Feb 23, 2022
Copy link
Contributor

@singholt singholt left a comment

Choose a reason for hiding this comment

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

LGTM overall, just some nit picks and questions.

agent/api/ecsclient/client.go Show resolved Hide resolved
agent/api/eni/eniattachment.go Show resolved Hide resolved
agent/api/task/task.go Outdated Show resolved Hide resolved
agent/api/task/task.go Outdated Show resolved Hide resolved
agent/api/task/task.go Outdated Show resolved Hide resolved
agent/engine/docker_task_engine.go Outdated Show resolved Hide resolved
agent/engine/docker_task_engine.go Outdated Show resolved Hide resolved
agent/engine/docker_task_engine.go Outdated Show resolved Hide resolved
agent/eni/watcher/watcher_linux.go Outdated Show resolved Hide resolved
Copy link
Contributor

@singholt singholt left a comment

Choose a reason for hiding this comment

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

🚀

@angelcar angelcar merged commit f70d73e into aws:dev Feb 24, 2022
@chienhanlin chienhanlin mentioned this pull request Mar 2, 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.

6 participants