-
Notifications
You must be signed in to change notification settings - Fork 916
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
[KYUUBI 4650][Improvement] LogDivertAppender supports reading RollingFileAppender pattern #4653
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4653 +/- ##
============================================
- Coverage 57.64% 57.56% -0.08%
Complexity 13 13
============================================
Files 579 579
Lines 31901 31958 +57
Branches 4263 4271 +8
============================================
+ Hits 18389 18397 +8
- Misses 11755 11793 +38
- Partials 1757 1768 +11
... and 16 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
(ap.isInstanceOf[ConsoleAppender] || ap.isInstanceOf[RollingFileAppender]) | ||
&& ap.getLayout.isInstanceOf[StringLayout]) |
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.
(ap.isInstanceOf[ConsoleAppender] || ap.isInstanceOf[RollingFileAppender]) | |
&& ap.getLayout.isInstanceOf[StringLayout]) | |
(ap.isInstanceOf[ConsoleAppender] || ap.isInstanceOf[RollingFileAppender]) && | |
ap.getLayout.isInstanceOf[StringLayout]) |
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.
let's use dangling operators
…reading RollingFileAppender pattern ### _Why are the changes needed?_ close #4650 ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request Closes #4653 from lsm1/features/kyuubi_4650. Closes #4653 79962aa [senmiaoliu] reformat e4bb732 [senmiaoliu] respect user log pattern Authored-by: senmiaoliu <senmiaoliu@trip.com> Signed-off-by: Cheng Pan <chengpan@apache.org> (cherry picked from commit 473907c) Signed-off-by: Cheng Pan <chengpan@apache.org>
Thanks, merged to master |
Why are the changes needed?
close #4650
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before make a pull request