Update logging behavior
This commit is contained in:
parent
3b78b06fff
commit
6f1ba24761
28 changed files with 176 additions and 137 deletions
|
|
@ -64,7 +64,7 @@ func (exporter *Exporter) NewBackup(ctx context.Context, progress io.Writer, des
|
|||
backup.EndTime = time.Now().UTC()
|
||||
|
||||
return nil
|
||||
}, progress, "Writing backup files")
|
||||
}, progress, ctx, "Writing backup files")
|
||||
|
||||
return
|
||||
}
|
||||
|
|
@ -110,7 +110,7 @@ func (backup *Backup) run(ctx context.Context, progress io.Writer, exporter *Exp
|
|||
}
|
||||
|
||||
return nil
|
||||
}, progress, "Backing up core components")
|
||||
}, progress, ctx, "Backing up core components")
|
||||
|
||||
// backup instances
|
||||
logging.LogOperation(func() error {
|
||||
|
|
@ -165,6 +165,6 @@ func (backup *Backup) run(ctx context.Context, progress io.Writer, exporter *Exp
|
|||
})
|
||||
|
||||
return nil
|
||||
}, progress, "Creating instance snapshots")
|
||||
}, progress, ctx, "Creating instance snapshots")
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue