-
Notifications
You must be signed in to change notification settings - Fork 929
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
Update triple and some relies version, add consumer registry timeout configuration item #1516
Changes from all commits
b7afe38
2ef7c98
0352167
7f17977
9be8824
f942f4d
2e86ec8
1e4fc5e
7702e36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,12 +133,17 @@ func registerPOJO() { | |
|
||
func (rc *RootConfig) Init() error { | ||
registerPOJO() | ||
if err := rc.Logger.Init(); err != nil { | ||
if err := rc.Logger.Init(); err != nil { // init default logger | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is useless code. If you init logger after configcenter , and print success info. Then if not success info of config center then init fail. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The dependency logic is: config-center's Init procedure relies on default logger, because it would print some logs using default logger. And the user-configed logger relies on config-center's init procedure, to get the logger config from config-center and set the default logger to target logger. So the init logic is
|
||
return err | ||
} | ||
if err := rc.ConfigCenter.Init(rc); err != nil { | ||
logger.Infof("config center doesn't start, because %s", err) | ||
} else { | ||
if err := rc.Logger.Init(); err != nil { // init logger using config from config center again | ||
return err | ||
} | ||
} | ||
|
||
if err := rc.Application.Init(); err != nil { | ||
return err | ||
} | ||
|
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.
1.下划线是不是要改横线
2.为什么要添加这个key
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.