-
Notifications
You must be signed in to change notification settings - Fork 71
Logging Cleanup - Part 2 #413
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
Conversation
…twork managers, and listener synthesizer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not entirely sure what generated these files, are we meant to add them to .gitignore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems code generation was interrupted and left temp files, you need to remove them
Pull Request Test Coverage Report for Build 6319136235
💛 - Coveralls |
| } | ||
| if service.Spec.CustomerDomainName == "" { | ||
| glog.V(2).Infof("Skipping creation of %s: detected no custom domain", namespacedName.String()) | ||
| s.log.Debugf("Skipping creation of %s: detected no custom domain", namespacedName.String()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%s will use Stringer interface and call String(), no need to explicitly call String()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, will include this in part 3!
| m.log.Debugf("Failed to delete service network %s due to %s", snName, resp) | ||
| return errors.New(LATTICE_RETRY) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can return wrapped retry error, it will trigger retry also will print error cause to log in Retry handler
return fmt.Errorf("%w: failed to delete service network: %s: %s", RetryErr, snName, resp.Status)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RetryErr is a real thing btw, https://github.com/aws/aws-application-networking-k8s/blob/main/pkg/deploy/lattice/error.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, will include in part 3!
What type of PR is this?
cleanup
Which issue does this PR fix:
#126 partially
What does this PR do / Why do we need it:
If an issue # is not available please add repro steps and logs from aws-gateway-controller showing the issue:
Testing done on this change:
Automation added to e2e:
Will this PR introduce any new dependencies?:
No
Will this break upgrades or downgrades. Has updating a running cluster been tested?:
No
Does this PR introduce any user-facing change?:
Only logging changes
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.