Skip to content

Conversation

@scwlkq
Copy link
Contributor

@scwlkq scwlkq commented Oct 24, 2023

Fixes #4502

Motivation

Modifications

  • Optimizing Log Printing Using the ##LogUtils.
  • Preserved some logic based on log level judgment, such as the following:

Documentation

  • Does this pull request introduce a new feature? (yes / no) no
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to the Apache EventMesh community!!
This is your first PR in our project. We're very excited to have you onboard contributing. Your contributions are greatly appreciated!

Please make sure that the changes are covered by tests.
We will be here shortly.
Let us know if you need any help!

Want to get closer to the community?

WeChat Assistant WeChat Public Account Slack
Join Slack Chat

Mailing Lists:

Name Description Subscribe Unsubscribe Archive
Users User support and questions mailing list Subscribe Unsubscribe Mail Archives
Development Development related discussions Subscribe Unsubscribe Mail Archives
Commits All commits to repositories Subscribe Unsubscribe Mail Archives
Issues Issues or PRs comments and reviews Subscribe Unsubscribe Mail Archives

Copy link
Member

@Pil0tXia Pil0tXia left a comment

Choose a reason for hiding this comment

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

Overall great job for a freshman. However, there were some ill-formed modifications introduced. Please revert these non-standard formattings.

Copy link
Member

@mxsm mxsm left a comment

Choose a reason for hiding this comment

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

@scwlkq Thanks for your contribution! I have a small suggestion that PRs should try to do one thing at a time. So this PR should only handle log processing. I saw that there are many format changes and method moves, as well as code deletions, etc. If necessary, these issues can be handled by raising new ISSues instead of handling them in one PR. Try to avoid doing multiple things in one PR.

@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Merging #4507 (190df62) into master (a091017) will increase coverage by 0.18%.
The diff coverage is 10.77%.

❗ Current head 190df62 differs from pull request most recent head b4b0a6a. Consider uploading reports for the commit b4b0a6a to get more accurate results

@@             Coverage Diff              @@
##             master    #4507      +/-   ##
============================================
+ Coverage     15.91%   16.09%   +0.18%     
- Complexity     1545     1550       +5     
============================================
  Files           730      730              
  Lines         28896    28640     -256     
  Branches       2745     2523     -222     
============================================
+ Hits           4600     4611      +11     
+ Misses        23816    23581     -235     
+ Partials        480      448      -32     
Files Coverage Δ
...apache/eventmesh/common/file/WatchFileManager.java 67.64% <100.00%> (+9.31%) ⬆️
...e/admin/handler/RedirectClientByIpPortHandler.java 34.04% <ø> (ø)
...ime/admin/handler/RedirectClientByPathHandler.java 84.44% <ø> (ø)
...org/apache/eventmesh/runtime/util/WebhookUtil.java 68.75% <100.00%> (+4.04%) ⬆️
...sh/client/grpc/consumer/EventMeshGrpcConsumer.java 64.82% <100.00%> (+3.78%) ⬆️
...sh/client/grpc/producer/EventMeshGrpcProducer.java 54.05% <100.00%> (+2.77%) ⬆️
...g/apache/eventmesh/client/http/util/HttpUtils.java 42.59% <100.00%> (+1.52%) ⬆️
...hook/admin/AdminWebHookConfigOperationManager.java 81.81% <100.00%> (+7.90%) ⬆️
...che/eventmesh/common/protocol/tcp/codec/Codec.java 62.96% <66.66%> (+4.62%) ⬆️
.../jdbc/source/dialect/cdc/mysql/MysqlCdcEngine.java 0.00% <0.00%> (ø)
... and 57 more

... and 1 file with indirect coverage changes

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

Copy link
Member

@mxsm mxsm left a comment

Choose a reason for hiding this comment

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

@scwlkq This branch has conflicts that must be resolved

@scwlkq
Copy link
Contributor Author

scwlkq commented Oct 25, 2023

It was my negligence to configure checkcode but not apply it. I will correct the points mentioned above. Thank you for your patience and correction.

Copy link
Member

@mxsm mxsm left a comment

Choose a reason for hiding this comment

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

@scwlkq Please fix CI

@scwlkq scwlkq requested a review from Pil0tXia October 28, 2023 10:26
Copy link
Member

@Pil0tXia Pil0tXia left a comment

Choose a reason for hiding this comment

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

LGTM

mxsm
mxsm previously approved these changes Oct 31, 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.

[Enhancement] Optimizing Log Printing Using the LogUtils

5 participants