1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-02-07 11:36:25 +02:00

Remove forgotten debug log

This commit is contained in:
DarthSim 2019-03-22 22:57:18 +06:00
parent 79af765015
commit d572c7a273

View File

@ -1,7 +1,6 @@
package main
import (
"fmt"
http "net/http"
"github.com/aws/aws-sdk-go/aws"
@ -47,10 +46,9 @@ func (t s3Transport) RoundTrip(req *http.Request) (resp *http.Response, err erro
s3req, _ := t.svc.GetObjectRequest(input)
s3err := s3req.Send()
if s3err == nil { // resp is now filled
return s3req.HTTPResponse, nil
if err := s3req.Send(); err != nil {
return nil, err
}
fmt.Println("s3 error", s3err)
return nil, s3err
return s3req.HTTPResponse, nil
}