Skip to content

Commit 016fdbb

Browse files
committed
streamline list_namespaces logging
1 parent 43a52e2 commit 016fdbb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

internal/verifier/list_namespaces.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ func ListAllUserCollections(ctx context.Context, logger *logger.Logger, client *
4040
if err != nil {
4141
return nil, err
4242
}
43-
logger.Debug().Msgf("All user databases: %+v", dbNames)
43+
logger.Debug().
44+
Strs("databases", dbNames).
45+
Msg("All user databases.")
4446

4547
collectionNamespaces := []string{}
4648
for _, dbName := range dbNames {
@@ -53,7 +55,11 @@ func ListAllUserCollections(ctx context.Context, logger *logger.Logger, client *
5355
if err != nil {
5456
return nil, err
5557
}
56-
logger.Debug().Msgf("Collections for database %s: %+v", dbName, specifications)
58+
logger.Debug().
59+
Str("database", dbName).
60+
Interface("specifications", specifications).
61+
Msg("Found database members.")
62+
5763
for _, spec := range specifications {
5864
collectionNamespaces = append(collectionNamespaces, dbName+"."+spec.Name)
5965
}

0 commit comments

Comments
 (0)