add debug log
This commit is contained in:
parent
f45a755dc5
commit
a3b44ba5d9
@ -94,6 +94,7 @@ func QueryYoutubeName(id string) (n string, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bodyBytes, err := ioutil.ReadAll(resp.Body)
|
bodyBytes, err := ioutil.ReadAll(resp.Body)
|
||||||
|
fmt.Println("show yt resp body :: ", string(bodyBytes))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
@ -278,7 +278,7 @@ func addYoutubeChannel(sub, txt string, s *lineobj.SourceObject) (res string) {
|
|||||||
}
|
}
|
||||||
ytName, err := googleapi.QueryYoutubeName(args[0])
|
ytName, err := googleapi.QueryYoutubeName(args[0])
|
||||||
if err != nil || len(ytName) == 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"
|
return "get youtube channel name fail"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user