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

Remove error log when resource is deleted #640

Merged
merged 1 commit into from
Feb 23, 2022
Merged

Conversation

martyspiewak
Copy link
Contributor

@martyspiewak martyspiewak commented Feb 17, 2022

Changes proposed by this PR

Controller no longer logs an error when a resource has been deleted.

closes #586

Release Note

Controller no longer logs an error when a resource has been deleted.

PR Checklist

Note: Please do not remove items. Mark items as done [x] or use strikethrough if you believe they are not relevant

  • Linked to a relevant issue. Eg: Fixes #123 or Updates #123
  • Removed non-atomic or wip commits
  • Filled in the Release Note section above
  • Modified the docs to match changes

@netlify
Copy link

netlify bot commented Feb 17, 2022

✔️ Deploy Preview for elated-stonebraker-105904 canceled.

🔨 Explore the source changes: cd6a1b4

🔍 Inspect the deploy log: https://app.netlify.com/sites/elated-stonebraker-105904/deploys/620ec0ede109140008242fcf

@@ -393,7 +393,6 @@ func (r *repository) getObject(ctx context.Context, name string, namespace strin
)
if err != nil {
namespacedName := getNamespacedName(name, namespace)
log.Error(err, "failed to get object from api server", "object", namespacedName)
Copy link
Contributor

Choose a reason for hiding this comment

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

it might still be worth logging the error when the error is not a NotFound error

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an internal method and all of the public methods which call it already handle that error logging.

@martyspiewak martyspiewak requested a review from scothis February 18, 2022 19:55
@martyspiewak martyspiewak merged commit d1611f6 into main Feb 23, 2022
@martyspiewak martyspiewak deleted the 586-error-on-delete branch February 23, 2022 20:23
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.

an error is logged when a resource is deleted
3 participants