s3 debug log

This commit is contained in:
withchao
2023-07-12 11:06:41 +08:00
parent e62f5d8d7c
commit 95b1d09a3c
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -57,6 +57,7 @@ func (c *Controller) GetHashObject(ctx context.Context, hash string) (*s3.Object
}
func (c *Controller) InitiateUpload(ctx context.Context, hash string, size int64, expire time.Duration, maxParts int) (*InitiateUploadResult, error) {
log.ZDebug(ctx, "return")
if size < 0 {
return nil, errors.New("invalid size")
}