-
Notifications
You must be signed in to change notification settings - Fork 118
add log for init TiSession #327
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
add log for init TiSession #327
Conversation
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
|
/run-all-tests |
birdstorm
left a comment
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.
rest LGTM
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
|
/run-all-tests |
birdstorm
left a comment
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
| logger.info("init host mapping: start"); | ||
| this.hostMapping = | ||
| Optional.ofNullable(getConf().getHostMapping()) | ||
| .orElseGet(() -> new DefaultHostMapping(this.etcdClient, conf.getNetworkMappingName())); | ||
| logger.info("init host mapping: end"); |
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.
it's better to aggregate these logs into one single log:
init host mapping: started in xxx, tasks 12ms(or 12s)
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
Signed-off-by: marsishandsome marsishandsome@gmail.com
What problem does this PR solve?
add log for init TiSession
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes