Skip to content

Commit

Permalink
fix: fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
flywukong committed Nov 20, 2023
1 parent a49b2fe commit ea99ea4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ethdb/leveldb/leveldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ func NewCustom(file string, namespace string, customize func(options *opt.Option
options := configureOptions(customize)
logger := log.New("database", file)
usedCache := options.GetBlockCacheCapacity() + options.GetWriteBuffer()*2
logCtx := []interface{}{"cache", common.StorageSize(usedCache),
"handles", options.GetOpenFilesCacheCapacity(), "write buffer:", common.StorageSize(options.GetWriteBuffer())}
logCtx := []interface{}{"cache", common.StorageSize(usedCache), "handles", options.GetOpenFilesCacheCapacity()}
if options.ReadOnly {
logCtx = append(logCtx, "readonly", "true")
}
Expand Down
2 changes: 1 addition & 1 deletion ethdb/pebble/pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func New(file string, cache int, handles int, namespace string, readonly bool) (
}

logger.Info("Allocated cache and file handles", "cache", common.StorageSize(cache*1024*1024),
"handles", handles, "memTable size:", common.StorageSize(memTableSize))
"handles", handles, "memory table", common.StorageSize(memTableSize))

db := &Database{
fn: file,
Expand Down

0 comments on commit ea99ea4

Please sign in to comment.