diff --git a/common/logger/logger.go b/common/logger/logger.go index f6522c489d047a1d4ec7000565bf4cfda6a50466..9f3cc331fcf87416eb5da345e491d053f6d2ad48 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 c71e843e060a198f23b747fa80adee81554bcc0d..497926f1d3822f7b7d33640fa18cbc2bd65bdbb9 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