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

[KYUUBI 4650][Improvement] LogDivertAppender supports reading RollingFileAppender pattern #4653

Closed
wants to merge 2 commits into from

Conversation

lsm1
Copy link
Contributor

@lsm1 lsm1 commented Apr 3, 2023

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

@codecov-commenter
Copy link

Codecov Report

Merging #4653 (e4bb732) into master (4c2f1e6) will decrease coverage by 0.08%.
The diff coverage is 25.00%.

@@             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     
Impacted Files Coverage Δ
...e/kyuubi/operation/log/Log4j12DivertAppender.scala 0.00% <0.00%> (ø)
...he/kyuubi/operation/log/Log4j2DivertAppender.scala 93.18% <33.33%> (-2.06%) ⬇️

... and 16 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Comment on lines 95 to 96
(ap.isInstanceOf[ConsoleAppender] || ap.isInstanceOf[RollingFileAppender])
&& ap.getLayout.isInstanceOf[StringLayout])
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
(ap.isInstanceOf[ConsoleAppender] || ap.isInstanceOf[RollingFileAppender])
&& ap.getLayout.isInstanceOf[StringLayout])
(ap.isInstanceOf[ConsoleAppender] || ap.isInstanceOf[RollingFileAppender]) &&
ap.getLayout.isInstanceOf[StringLayout])

Copy link
Member

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

@pan3793 pan3793 closed this in 473907c Apr 4, 2023
pan3793 pushed a commit that referenced this pull request Apr 4, 2023
…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>
@pan3793 pan3793 added this to the v1.7.1 milestone Apr 4, 2023
@pan3793
Copy link
Member

pan3793 commented Apr 4, 2023

Thanks, merged to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement] LogDivertAppender supports reading RollingFileAppender pattern
5 participants