fix: log PutFile error
This commit is contained in:
parent
e73fa0a103
commit
ae4901757b
|
@ -509,6 +509,11 @@ func (s *StorageServiceImpl) buildNewTusUploadTask(upload *models.TusUpload) (jo
|
|||
|
||||
err = s.PutFile(reader, s.portal.Config().GetString("core.storage.s3.bucket"), dbHash)
|
||||
|
||||
if err != nil {
|
||||
s.portal.Logger().Error("Could not upload file", zap.Error(err))
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}, upload)
|
||||
|
||||
|
|
Loading…
Reference in New Issue