Skip to content

Commit 245c104

Browse files
committed
Fix logs.
1 parent fcbe8d9 commit 245c104

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pcsm/catalog.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ func (c *Catalog) ShardCollection(
11861186
return err //nolint:wrapcheck
11871187
}
11881188

1189-
log.Ctx(ctx).Infof("Sharded collection %s.%s", db, coll)
1189+
log.Ctx(ctx).Debugf("Sharded collection %s.%s", db, coll)
11901190

11911191
// update c.databases[db].collections[coll].sharded = true
11921192
c.lock.Lock()

pcsm/clone.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,9 @@ func (c *Clone) doCollectionClone(
445445
if err != nil {
446446
return errors.Wrap(err, "shard collection")
447447
}
448-
}
449448

450-
lg.Infof("Collection %q sharded", ns.String())
449+
lg.Infof("Collection %q sharded", ns.String())
450+
}
451451

452452
c.catalog.SetCollectionTimestamp(ctx, ns.Database, ns.Collection, capturedAt)
453453

0 commit comments

Comments
 (0)