You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "majintao (via GitHub)" <gi...@apache.org> on 2024/01/03 10:50:33 UTC

[I] I can not remove this waring. [dubbo-go]

majintao opened a new issue, #2558:
URL: https://github.com/apache/dubbo-go/issues/2558

   2024-01-03 18:47:45.742	WARN	tag/router.go:87	[-]	config center does not start, please check if the configuration center has been properly configured in dubbogo.yml%!(EXTRA []interface {}=[])	{"SW_CTX": "[xf-app,639f89eeaa2511eebcf552f3f496997d@192.168.24.77,N/A,N/A,-1]"}


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] I can not remove this waring. [dubbo-go]

Posted by "FinalT (via GitHub)" <gi...@apache.org>.
FinalT commented on issue #2558:
URL: https://github.com/apache/dubbo-go/issues/2558#issuecomment-1875193044

   I will fix this soon


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] I can not remove this waring. [dubbo-go]

Posted by "DMwangnima (via GitHub)" <gi...@apache.org>.
DMwangnima commented on issue #2558:
URL: https://github.com/apache/dubbo-go/issues/2558#issuecomment-1886098662

   Resolved by #2559 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] I can not remove this waring. [dubbo-go]

Posted by "majintao (via GitHub)" <gi...@apache.org>.
majintao commented on issue #2558:
URL: https://github.com/apache/dubbo-go/issues/2558#issuecomment-1875175737

   func Start(conf Conf) error {
   	if conf.LogLevel == "" {
   		conf.LogLevel = "error"
   	}
   	logger.SetLoggerLevel(conf.LogLevel)
   
   	applicationConfig := config.NewApplicationConfigBuilder().SetName(conf.AppName).Build()
   
   	protocolConfigs := make(map[string]*config.ProtocolConfig, 0)
   	if conf.ProtocolConfig.Name != "" {
   		// 根据配置设置启动参数
   		clientConfig := getty.GetDefaultClientConfig()
   		params := conf.ProtocolConfig.Params
   		if params.GrPoolSize != 0 {
   			clientConfig.GrPoolSize = params.GrPoolSize
   		}
   
   		if params.ConnectionNumber != 0 {
   			clientConfig.ConnectionNum = params.ConnectionNumber
   		}
   
   		if params.MaxMsgLen != 0 {
   			clientConfig.GettySessionParam.MaxMsgLen = params.MaxMsgLen
   		}
   
   		if params.SessionName != "" {
   			clientConfig.GettySessionParam.SessionName = params.SessionName
   		}
   
   		dubboPort := strconv.Itoa(conf.ProtocolConfig.Port)
   		if dubboPort == "" {
   			dubboPort = "-1"
   		}
   		dubboProtocolConfig := config.NewProtocolConfigBuilder().
   			SetName(conf.ProtocolConfig.Name).SetPort(dubboPort).SetParams(clientConfig).Build()
   		protocolConfigs[conf.ProtocolConfig.Name] = dubboProtocolConfig
   	} else {
   		// 默认配置
   		defaultProtocolName := "dubbo"
   		defaultDubboProtocolConfig := config.NewProtocolConfigBuilder().
   			SetName(defaultProtocolName).SetPort("-1").Build()
   		protocolConfigs[defaultProtocolName] = defaultDubboProtocolConfig
   	}
   
   	consumerConfig := config.NewConsumerConfigBuilder().SetCheck(false).SetReferences(References).Build()
   	providerConfig := config.NewProviderConfigBuilder().SetServices(Services).Build()
   
   	registryConfigs := make(map[string]*config.RegistryConfig, 0)
   	for _, registry := range conf.Registries {
   		registryConfigs[registry.Name] = config.NewRegistryConfigBuilder().
   			SetProtocol(registry.Protocol).
   			SetTimeout(registry.Timeout).
   			SetRegistryType(registry.RegistryType).
   			SetAddress(registry.Address).Build()
   	}
   
   	loggerConfig := config.NewLoggerConfigBuilder().SetDriver("zap").SetLevel("error").Build()
   	rootConfig := config.NewRootConfigBuilder().
   		SetApplication(applicationConfig).
   		SetConsumer(consumerConfig).
   		SetProvider(providerConfig).
   		SetProtocols(protocolConfigs).
   		SetLogger(loggerConfig).
   		SetConfigCenter(config.NewConfigCenterConfigBuilder().Build()).
   		SetRegistries(registryConfigs).Build()
   
   	err := config.Load(config.WithRootConfig(rootConfig))
   
   	if err != nil {
   		return err
   	}
   
   	// 处理日志替换
   	logger.SetLogger(NewCustomLogger(xflog.GetLogger().AddCallerSkip(2)))
   	logger.SetLoggerLevel(conf.LogLevel)
   
   	return nil
   }


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] I can not remove this waring. [dubbo-go]

Posted by "DMwangnima (via GitHub)" <gi...@apache.org>.
DMwangnima closed issue #2558: I can not remove this waring.
URL: https://github.com/apache/dubbo-go/issues/2558


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org