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

pkg/logrusutil: Fix PropagateJSON to use logger; add tests #2074

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

alexandear
Copy link
Member

@alexandear alexandear commented Dec 14, 2023

This PR refactors the function logrusutil.PropagateJSON by removing goto, changing fallback logrus.Info (which prints to stderr) to logger.Info, and adding unit tests.

@alexandear alexandear force-pushed the refactor-pkg-logrusutil branch 2 times, most recently from 3d203a7 to a557c8d Compare December 14, 2023 11:31
@alexandear alexandear force-pushed the refactor-pkg-logrusutil branch from a557c8d to 545b764 Compare December 15, 2023 10:01
@alexandear alexandear changed the title pkg/logrusutil: Remove goto from PropagateJSON; add tests pkg/logrusutil: Fix PropagateJSON to use logger; add tests Dec 15, 2023
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks

@AkihiroSuda AkihiroSuda merged commit 977081d into lima-vm:master Dec 15, 2023
@AkihiroSuda AkihiroSuda added this to the v0.19.1 milestone Dec 15, 2023
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.

3 participants