You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/02/08 06:19:19 UTC

[GitHub] [servicecomb-service-center] tianxiaoliang commented on a change in pull request #851: add mongo init script

tianxiaoliang commented on a change in pull request #851:
URL: https://github.com/apache/servicecomb-service-center/pull/851#discussion_r571803190



##########
File path: datasource/mongo/client/mongo.go
##########
@@ -128,6 +128,7 @@ func (mc *MongoClient) newClient(ctx context.Context) (err error) {
 	clientOptions := options.Client().ApplyURI(mc.dbconfig.URI)
 	mc.client, err = mongo.Connect(ctx, clientOptions)
 	if err != nil {
+		log.Error("[init mongo client] failed to connect to mongo", err)

Review comment:
       没必要中括号和里面内容




----------------------------------------------------------------
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.

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