extra backup logging
This commit is contained in:
parent
2f4265a9dc
commit
194878dfaa
@ -195,6 +195,7 @@ func (op *BackupOperation) do(ctx context.Context) (err error) {
|
||||
if err != nil {
|
||||
op.Errors.Fail(errors.Wrap(err, "collecting manifest heuristics"))
|
||||
opStats.readErr = op.Errors.Err()
|
||||
logger.Ctx(ctx).With("err", err).Errorw("producing manifests and metadata", clues.InErr(err).Slice()...)
|
||||
|
||||
return opStats.readErr
|
||||
}
|
||||
@ -203,6 +204,7 @@ func (op *BackupOperation) do(ctx context.Context) (err error) {
|
||||
if err != nil {
|
||||
op.Errors.Fail(errors.Wrap(err, "connecting to m365"))
|
||||
opStats.readErr = op.Errors.Err()
|
||||
logger.Ctx(ctx).With("err", err).Errorw("connectng to m365", clues.InErr(err).Slice()...)
|
||||
|
||||
return opStats.readErr
|
||||
}
|
||||
@ -211,6 +213,7 @@ func (op *BackupOperation) do(ctx context.Context) (err error) {
|
||||
if err != nil {
|
||||
op.Errors.Fail(errors.Wrap(err, "retrieving data to backup"))
|
||||
opStats.readErr = op.Errors.Err()
|
||||
logger.Ctx(ctx).With("err", err).Errorw("producing backup data collections", clues.InErr(err).Slice()...)
|
||||
|
||||
return opStats.readErr
|
||||
}
|
||||
@ -229,6 +232,7 @@ func (op *BackupOperation) do(ctx context.Context) (err error) {
|
||||
if err != nil {
|
||||
op.Errors.Fail(errors.Wrap(err, "backing up service data"))
|
||||
opStats.writeErr = op.Errors.Err()
|
||||
logger.Ctx(ctx).With("err", err).Errorw("persisting collection backups", clues.InErr(err).Slice()...)
|
||||
|
||||
return opStats.writeErr
|
||||
}
|
||||
@ -243,6 +247,7 @@ func (op *BackupOperation) do(ctx context.Context) (err error) {
|
||||
); err != nil {
|
||||
op.Errors.Fail(errors.Wrap(err, "merging backup details"))
|
||||
opStats.writeErr = op.Errors.Err()
|
||||
logger.Ctx(ctx).With("err", err).Errorw("merging details", clues.InErr(err).Slice()...)
|
||||
|
||||
return opStats.writeErr
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user