Commit dfb4c3c0 by Li Feifei

print log

parent febe2e46
Pipeline #14625 passed with stages
in 1 minute 4 seconds
......@@ -17,6 +17,7 @@ import (
"image/png"
"io"
"io/ioutil"
"log"
"mime"
"net/http"
"net/http/cookiejar"
......@@ -246,6 +247,7 @@ func Down(v *models.XyuSmallTempFiles) {
ch <- true
} else {
UpdateFileError("3", v.Uuid, v.RoomNum, objectName)
return
}
}()
<-ch
......@@ -260,12 +262,15 @@ func Down(v *models.XyuSmallTempFiles) {
for _, file := range reader.File {
Pool.DoWait(func() error {
log.Printf("file = %s \n", file.Name)
var err error
for i := 0; i < 3; i++ {
if err = pdfThumbnail(objectPath, file, bucket); err == nil {
break
}
}
return err
})
//go func(file *zip.File) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment