mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 01:36:24 +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:
parent
10aaa35db5
commit
6be6585643
1 changed files with 2 additions and 1 deletions
|
@ -220,7 +220,8 @@ func (cmd *compacter) walk(db *bbolt.DB, walkFn walkFunc) error {
|
|||
return tx.ForEach(func(name []byte, b *bbolt.Bucket) error {
|
||||
// This will log the top level buckets only to give the
|
||||
// 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(
|
||||
b, nil, name, nil, b.Sequence(), walkFn,
|
||||
|
|
Loading…
Add table
Reference in a new issue