-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
optimize:show the applicationId when register TM #1980
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1980 +/- ##
============================================
- Coverage 55.31% 55.3% -0.02%
+ Complexity 2439 2437 -2
============================================
Files 434 434
Lines 14469 14469
Branches 1706 1706
============================================
- Hits 8004 8002 -2
Misses 5743 5743
- Partials 722 724 +2
|
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.
LGTM.
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.
LGTM
@@ -133,8 +133,8 @@ public void onRegTmMessage(RpcMessage request, ChannelHandlerContext ctx, Server | |||
Version.putChannelVersion(ctx.channel(), message.getVersion()); | |||
isSuccess = true; | |||
if (LOGGER.isInfoEnabled()) { | |||
LOGGER.info(String.format("checkAuth for client:%s vgroup:%s ok", ipAndPort, | |||
message.getTransactionServiceGroup())); | |||
LOGGER.info("checkAuth for client:{},vgroup:{},applicationId:{}", |
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.
Here you need a status to indicate that it is authenticated OK
.
Ⅰ. Describe what this PR did
optimize:show the applicationId when register TM
when register TM,we do not know which application register,we just know the ip and port like this:
io.seata.core.rpc.DefaultServerMessageListenerImpl.onRegTmMessage:133 -checkAuth for client:192.168.xx.xx:10984 vgroup:fsp_tx_group ok
When we monitor the server log,it is very unfriendly,we want to know which application had regiested,or remove,like this:
io.seata.core.rpc.DefaultServerMessageListenerImpl.onRegTmMessage:133 -checkAuth for client:192.168.xx.xx:10984 vgroup:fsp_tx_group applicationId:user-server ok
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews