add debug log

This commit is contained in:
Jay 2019-03-27 13:51:43 +00:00
parent abcfa63eb6
commit 7c694686b6

View File

@ -9,6 +9,7 @@ import (
"strings" "strings"
"git.trj.tw/golang/mtfosbot/module/apis" "git.trj.tw/golang/mtfosbot/module/apis"
"git.trj.tw/golang/mtfosbot/module/utils"
jsoniter "github.com/json-iterator/go" jsoniter "github.com/json-iterator/go"
"git.trj.tw/golang/mtfosbot/module/config" "git.trj.tw/golang/mtfosbot/module/config"
@ -108,6 +109,7 @@ func QueryYoutubeName(id string) (n string, err error) {
}{} }{}
err = json.Unmarshal(bodyBytes, &apiRes) err = json.Unmarshal(bodyBytes, &apiRes)
fmt.Println("api resp ::: ", utils.ToMap(apiRes))
if err != nil { if err != nil {
return "", err return "", err
} }