add debug log

This commit is contained in:
Jay 2019-03-27 13:26:59 +00:00
parent f45a755dc5
commit a3b44ba5d9
2 changed files with 2 additions and 1 deletions

View File

@ -94,6 +94,7 @@ func QueryYoutubeName(id string) (n string, err error) {
}
bodyBytes, err := ioutil.ReadAll(resp.Body)
fmt.Println("show yt resp body :: ", string(bodyBytes))
if err != nil {
return "", err
}

View File

@ -278,7 +278,7 @@ func addYoutubeChannel(sub, txt string, s *lineobj.SourceObject) (res string) {
}
ytName, err := googleapi.QueryYoutubeName(args[0])
if err != nil || len(ytName) == 0 {
fmt.Println("get youtube channel name fail :: ", err)
fmt.Println("get youtube channel name fail :: ", err, ytName)
return "get youtube channel name fail"
}