Use a sub-logger for the transactional cache (#4428)
This commit is contained in:
parent
0882e5afb6
commit
dbd1f119ed
|
@ -539,7 +539,7 @@ func NewCore(conf *CoreConfig) (*Core, error) {
|
|||
if txnOK {
|
||||
c.physical = physical.NewTransactionalCache(c.sealUnwrapper, conf.CacheSize, conf.Logger.ResetNamed("storage.cache"))
|
||||
} else {
|
||||
c.physical = physical.NewCache(c.sealUnwrapper, conf.CacheSize, conf.Logger.Named("storage.cache"))
|
||||
c.physical = physical.NewCache(c.sealUnwrapper, conf.CacheSize, conf.Logger.ResetNamed("storage.cache"))
|
||||
}
|
||||
c.physicalCache = c.physical.(physical.ToggleablePurgemonster)
|
||||
|
||||
|
|
Loading…
Reference in New Issue