From 22b31aee81aaf5d73391eeef07b7760ec99b91d0 Mon Sep 17 00:00:00 2001
From: fangyincheng <fangyincheng@sina.com>
Date: Tue, 11 Jun 2019 14:06:13 +0800
Subject: [PATCH] Mod:modify examples/README.md, fix issue #79

---
 common/logger/logger.go |  2 +-
 examples/README.md      | 22 ++++++++++------------
 2 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/common/logger/logger.go b/common/logger/logger.go
index f6522c489..9f3cc331f 100644
--- a/common/logger/logger.go
+++ b/common/logger/logger.go
@@ -56,7 +56,7 @@ func init() {
 	logConfFile := os.Getenv(constant.APP_LOG_CONF_FILE)
 	err := InitLog(logConfFile)
 	if err != nil {
-		log.Printf("[InitLog] error: %v", err)
+		log.Printf("[InitLog] warn: %v", err)
 	}
 }
 
diff --git a/examples/README.md b/examples/README.md
index c71e843e0..497926f1d 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -19,19 +19,19 @@ sh build.sh
 ```
 
 go server
+
+* sh ./assembly/\[os]/\[environment].sh
 ```bash
 cd dubbo/go-server
-#linux, mac windows represent the os
-#release, dev and test represent the environment
-sh ./assembly/linux/release.sh
+# $ARCH = [linux, mac, windows] and $ENV = [dev, release, test]
+sh ./assembly/$ARCH/$ENV.sh
 ```
 
 go client
 ```bash
 cd dubbo/go-client
-#linux, mac windows represent the os
-#release, dev and test represent the environment
-sh ./assembly/linux/release.sh
+# $ARCH = [linux, mac, windows] and $ENV = [dev, release, test]
+sh ./assembly/$ARCH/$ENV.sh
 ```
 
 #### Run by these command:
@@ -53,8 +53,6 @@ sh ./bin/server.sh start
 ```
 
 go server
-> It must not listen on IP 127.0.0.1 when called by java-client.
-> You should change IP in dubbo/go-server/target/linux/user_info_server-0.3.1-20190517-0930-release/conf/server.yml
 ```bash
 cd dubbo/go-server/target/linux/user_info_server-0.3.1-20190517-0930-release
 #conf suffix appoint config file, 
@@ -66,10 +64,10 @@ sh ./bin/load.sh start [conf suffix]
 go client
 ```bash
 cd dubbo/go-client/target/linux/user_info_client-0.3.1-20190517-0921-release
-#conf suffix appoint config file, 
-#such as client_zookeeper.yml when "sh ./bin/load.sh start is zookeeper", 
-#default client.yml
-sh ./bin/load_user_info_client.sh start [conf suffix]
+# $SUFFIX is a suffix of config file,
+# such as client_zookeeper.yml when $SUFFIX = zookeeper", 
+# if $SUFFIX = "", config file is client.yml
+sh ./bin/load_user_info_client.sh start $SUFFIX
 ```
 
 ## jsonrpc
-- 
GitLab