fix: log PutFile error

This commit is contained in:
Derrick Hammer 2024-01-21 00:08:49 -05:00
parent e73fa0a103
commit ae4901757b
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -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)