mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 22:27:22 +01:00
kvdb/bolt_compact: filter out non-ASCII from bucket name before printing
Printing the raw bucket name lead to weird characters and even sounds being printed.
This commit is contained in:
@@ -220,7 +220,8 @@ func (cmd *compacter) walk(db *bbolt.DB, walkFn walkFunc) error {
|
|||||||
return tx.ForEach(func(name []byte, b *bbolt.Bucket) error {
|
return tx.ForEach(func(name []byte, b *bbolt.Bucket) error {
|
||||||
// This will log the top level buckets only to give the
|
// This will log the top level buckets only to give the
|
||||||
// user some sense of progress.
|
// user some sense of progress.
|
||||||
log.Debugf("Compacting top level bucket %s", name)
|
log.Debugf("Compacting top level bucket '%s'",
|
||||||
|
LoggableKeyName(name))
|
||||||
|
|
||||||
return cmd.walkBucket(
|
return cmd.walkBucket(
|
||||||
b, nil, name, nil, b.Sequence(), walkFn,
|
b, nil, name, nil, b.Sequence(), walkFn,
|
||||||
|
|||||||
Reference in New Issue
Block a user