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

Properly set logger before creating a typed client #988

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

Kidswiss
Copy link
Contributor

@Kidswiss Kidswiss commented Jul 24, 2024

Summary

During pre-backup operations it was possible that the typed client was initialized without setting the logger first. Which lead to a big, but harmless, stacktrace in the backup pods.

This commit makes sure that the logger will be set every time the client gets created.

Resolves: #981

Checklist

For Code changes

  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog
  • PR contains the label area:operator
  • Commits are signed off
  • Link this PR to related issues
  • I have not made any changes in the charts/ directory.

@Kidswiss Kidswiss requested a review from a team as a code owner July 24, 2024 12:56
@Kidswiss Kidswiss requested review from TheBigLee and zugao and removed request for a team July 24, 2024 12:56
@Kidswiss Kidswiss added bug Something isn't working area:operator labels Jul 24, 2024
During pre-backup operations it was possible that the typed client was
initialized without setting the logger first. Which lead to a big, but
harmless, stacktrace in the backup pods.

This commit makes sure that the logger will be set every time the client
gets created.

Signed-off-by: Simon Beck <[email protected]>
Copy link
Collaborator

@zugao zugao left a comment

Choose a reason for hiding this comment

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

LGTM

@Kidswiss Kidswiss merged commit e904627 into master Jul 26, 2024
6 checks passed
@Kidswiss Kidswiss deleted the fix/logger_not_set branch July 26, 2024 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:operator bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[controller-runtime] log.SetLogger(...) was never called; logs will not be displayed.
2 participants