mirror of
https://github.com/octoleo/restic.git
synced 2024-11-16 01:57:10 +00:00
s3: Add more debug logs
This commit is contained in:
parent
a6f157f346
commit
6301620428
@ -213,7 +213,7 @@ func (be *Backend) Save(ctx context.Context, h restic.Handle, rd io.Reader) (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
|
||||
_, err = be.client.StatObject(be.bucketname, objName)
|
||||
|
@ -105,7 +105,7 @@ func (r *packerManager) insertPacker(p *Packer) {
|
||||
|
||||
// savePacker stores p in the backend.
|
||||
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()
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user