Skip to content

Commit 97b9c1f

Browse files
Improve log messages (#1116)
Co-authored-by: Sandra Romanchenko <[email protected]>
1 parent 636e254 commit 97b9c1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pbm/restore/physical.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ func (r *PhysRestore) waitClusterStatus() (defs.Status, error) {
310310
}
311311

312312
func (r *PhysRestore) flush(ctx context.Context) error {
313-
r.log.Debug("shutdown server")
313+
r.log.Debug("shutting down server")
314314
rsStat, err := topo.GetReplsetStatus(ctx, r.node)
315315
if err != nil {
316316
return errors.Wrap(err, "get replset status")
@@ -340,7 +340,7 @@ func (r *PhysRestore) flush(ctx context.Context) error {
340340
}
341341
break
342342
}
343-
r.log.Debug("waiting to became secondary")
343+
r.log.Debug("waiting to become secondary before shutting it down")
344344
time.Sleep(time.Second * 1)
345345
}
346346

@@ -1579,7 +1579,7 @@ func (r *PhysRestore) replayOplog(
15791579
&stat.Txn,
15801580
&mgoV)
15811581
if err != nil {
1582-
return errors.Wrap(err, "reply oplog")
1582+
return errors.Wrap(err, "replay oplog")
15831583
}
15841584
if len(partial) > 0 {
15851585
tops := []db.Oplog{}

0 commit comments

Comments
 (0)