Add max-depth constrain. Fix issue #4.

This commit is contained in:
zicla
2018-01-17 01:16:34 +08:00
parent 452c48c17e
commit 042bc6ca1a
5 changed files with 71 additions and 22 deletions

View File

@ -152,7 +152,7 @@ func PrepareConfigs() {
filePath := GetConfPath() + "/tank.json"
content, err := ioutil.ReadFile(filePath)
if err != nil {
LogWarning(fmt.Sprintf("无法找到配置文件:%s,%v", filePath, err))
LogWarning(fmt.Sprintf("无法找到配置文件,使用默认配置项%s,%v", filePath, err))
} else {
// 用 json.Unmarshal
err := json.Unmarshal(content, CONFIG)