debug: add debug line

This commit is contained in:
Derrick Hammer 2024-01-15 14:03:57 -05:00
parent b0a7566466
commit d6d15cff73
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import (
"git.lumeweb.com/LumeWeb/libs5-go/encoding" "git.lumeweb.com/LumeWeb/libs5-go/encoding"
"git.lumeweb.com/LumeWeb/portal/interfaces" "git.lumeweb.com/LumeWeb/portal/interfaces"
"github.com/go-resty/resty/v2" "github.com/go-resty/resty/v2"
"go.uber.org/zap"
"io" "io"
"lukechampine.com/blake3" "lukechampine.com/blake3"
) )
@ -51,6 +52,8 @@ func (s StorageServiceImpl) PutFile(file io.ReadSeeker, bucket string, generateP
return nil, err return nil, err
} }
s.portal.Logger().Info("resp", zap.Any("resp", resp.String()))
if resp.IsError() && resp.Error() != nil { if resp.IsError() && resp.Error() != nil {
return nil, resp.Error().(error) return nil, resp.Error().(error)
} }