dev(backend): log ios s3
This commit is contained in:
parent
d2b589bd01
commit
9d9ba10af8
2 changed files with 2 additions and 0 deletions
|
|
@ -172,6 +172,7 @@ func iosImagesUploadHandler(w http.ResponseWriter, r *http.Request) {
|
|||
continue // TODO: send server error or accumulate successful files
|
||||
}
|
||||
key := prefix + fileHeader.Filename
|
||||
log.Printf("Uploading ios screen: %v", key)
|
||||
go s3.Upload(file, key, "image/png", false)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ func main() {
|
|||
pgconn = cache.NewPGCache(postgres.NewConn(env.String("POSTGRES_STRING")), 1000 * 60 * 20)
|
||||
defer pgconn.Close()
|
||||
s3 = storage.NewS3(env.String("S3_BUCKET_IOS_IMAGES"), env.String("AWS_REGION"))
|
||||
log.Printf("Sr storage: %v, %v ",env.String("S3_BUCKET_IOS_IMAGES"), env.String("AWS_REGION"))
|
||||
tokenizer = token.NewTokenizer(env.String("TOKEN_SECRET"))
|
||||
uaParser = uaparser.NewUAParser(env.String("UAPARSER_FILE"))
|
||||
geoIP = geoip.NewGeoIP(env.String("MAXMINDDB_FILE"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue