add debug log

This commit is contained in:
Jay 2019-03-27 13:51:43 +00:00
parent abcfa63eb6
commit 7c694686b6
1 changed files with 2 additions and 0 deletions

View File

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