From a149de332c455c90a675526251e1ae4c967d38ce Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期五, 08 一月 2021 16:13:59 +0800 Subject: [PATCH] add log --- chanmanageApi.go | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/chanmanageApi.go b/chanmanageApi.go index 3acd5f9..6281c7e 100644 --- a/chanmanageApi.go +++ b/chanmanageApi.go @@ -72,15 +72,18 @@ var res Result if err = json.Unmarshal(body, &res); err != nil { + logPrint("unmarshal to Result err:", err) return false, config } b, err := json.Marshal(res.Data) if err !=nil { + logPrint("marshal res.Data err:", err) return false,config } else { err = json.Unmarshal(b, &config) if err !=nil { + logPrint("unmarshal config err:", err) return false,config } else { return true,config -- Gitblit v1.8.0