2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 21:05:10 +00:00

s3: Add more debug logs

This commit is contained in:
Alexander Neumann 2017-06-11 10:51:17 +02:00
parent a6f157f346
commit 6301620428
2 changed files with 2 additions and 2 deletions

View File

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

View File

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