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

Add extra logs in netlib package #4095

Merged
merged 1 commit into from Feb 16, 2024
Merged

Add extra logs in netlib package #4095

merged 1 commit into from Feb 16, 2024

Conversation

samjkon
Copy link
Contributor

@samjkon samjkon commented Feb 16, 2024

Summary

Additional logs to increase visibility into network builder executions has been added.

Implementation details

Added logs in netlib/platform/common_linux.go file.

Testing

go test -tags unit ./netlib/...

New tests cover the changes:
N/A

Description for the changelog

Additional logs to increase visibility into network builder executions has been added.

Does this PR include breaking model changes? If so, Have you added transformation functions?

Licensing

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

Additional logs to increase visibility into network builder executions
has been added.
@samjkon samjkon requested a review from a team as a code owner February 16, 2024 19:22
Copy link

@JoseVillalta JoseVillalta left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -182,6 +183,12 @@ func (c *common) buildAWSVPCNetworkNamespaces(
if err != nil {
return nil, err
}

logger.Info("Building network configuration for awsvpc task", map[string]interface{}{
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: prefer logger.Fields to a map literal, and we will usually add commonly used fields like the one you are introducing to the constants file [link]

Same comment for all of these logs

@samjkon samjkon merged commit 5a05142 into aws:dev Feb 16, 2024
36 checks passed
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.

None yet

5 participants