forked from TrueCloudLab/restic
s3: Add more debug logs
This commit is contained in:
parent
a6f157f346
commit
6301620428
2 changed files with 2 additions and 2 deletions
|
@ -213,7 +213,7 @@ func (be *Backend) Save(ctx context.Context, h restic.Handle, rd io.Reader) (err
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
debug.Log("Save %v at %v", h, objName)
|
debug.Log("Save %v at %v (%d bytes)", h, objName, size)
|
||||||
|
|
||||||
// Check key does not already exist
|
// Check key does not already exist
|
||||||
_, err = be.client.StatObject(be.bucketname, objName)
|
_, err = be.client.StatObject(be.bucketname, objName)
|
||||||
|
|
|
@ -105,7 +105,7 @@ func (r *packerManager) insertPacker(p *Packer) {
|
||||||
|
|
||||||
// savePacker stores p in the backend.
|
// savePacker stores p in the backend.
|
||||||
func (r *Repository) savePacker(p *Packer) error {
|
func (r *Repository) savePacker(p *Packer) error {
|
||||||
debug.Log("save packer with %d blobs\n", p.Packer.Count())
|
debug.Log("save packer with %d blobs (%d bytes)\n", p.Packer.Count(), p.Packer.Size())
|
||||||
_, err := p.Packer.Finalize()
|
_, err := p.Packer.Finalize()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue