Skip to content

Commit

Permalink
调整日志提示
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Dec 31, 2023
1 parent b0f984e commit 63aea45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internalContext.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (receiver *internalContext) Original() *elastic.Client {
func RegisterInternalContext(name string, configString string) {
config := configure.ParseString[EsConfig](configString)
if config.Server == "" {
panic("[farseer.yaml]ElasticSearch." + name + ".Server,没有正确配置")
panic("[farseer.yaml]ElasticSearch." + name + ".Server,配置不正确")
}
if config.RefreshInterval == 0 {
config.RefreshInterval = 1
Expand Down
2 changes: 1 addition & 1 deletion module.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (module Module) Initialize() {
for name, val := range nodes {
configString := val.(string)
if configString == "" {
panic("[farseer.yaml]ElasticSearch." + name + ",没有正确配置")
panic("[farseer.yaml]ElasticSearch." + name + ",配置不正确")
}
RegisterInternalContext(name, configString)
}
Expand Down

0 comments on commit 63aea45

Please sign in to comment.