remove deprecated log

This commit is contained in:
lealife
2017-11-30 18:46:30 +08:00
parent c6937fd184
commit 094d18be46
16 changed files with 44 additions and 52 deletions

View File

@ -53,7 +53,6 @@ func WriteUrl(url string, toPath string) (length int64, newFilename, path string
func GetContent(url string) (content []byte, err error) {
var resp *http.Response
resp, err = http.Get(url)
Log(err)
if resp != nil && resp.Body != nil {
defer resp.Body.Close()
} else {
@ -65,7 +64,6 @@ func GetContent(url string) (content []byte, err error) {
var buf []byte
buf, err = ioutil.ReadAll(resp.Body)
if err != nil {
Log(err)
return
}