-
Notifications
You must be signed in to change notification settings - Fork 923
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
Fix a bug where builders of LogFormatter
return internal classes
#4975
Conversation
Motivation: `TextLogFormatterBuilder.build()` and `JsonLogFormatterBuilder.build()` return package-private classes that cause compliation errors when using them in different packages. Modifications: - Make `TextLogFormatterBuilder.build()` and `JsonLogFormatterBuilder.build()` return `LogFormatter` instead of the internal classes. Result: You can no longer see compilation errors when using `TextLogFormatterBuilder.build()` and `JsonLogFormatterBuilder.build()`.
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 for the quick fix @ikhoon ! 👍 🙇 👍 (please check the CI failure)
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!
core/src/main/java/com/linecorp/armeria/common/logging/JsonLogFormatterBuilder.java
Outdated
Show resolved
Hide resolved
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, @ikhoon ! 🙇
@minwoox PTAL. 🙇♂️ |
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 a lot for fixing this. 🙇
Thanks for quick fix |
It was not you but me. 🤣 |
Motivation:
TextLogFormatterBuilder.build()
andJsonLogFormatterBuilder.build()
return package-private classes that cause compilation errors when using them in different packages.Modifications:
TextLogFormatterBuilder.build()
andJsonLogFormatterBuilder.build()
returnLogFormatter
instead of the internal classes.Result:
You can no longer see compilation errors when using
TextLogFormatterBuilder.build()
andJsonLogFormatterBuilder.build()
.