Use a sub-logger for the transactional cache (#4428)

This commit is contained in:
Becca Petrin 2018-04-23 09:08:12 -07:00 committed by Jeff Mitchell
parent 0882e5afb6
commit dbd1f119ed
1 changed files with 1 additions and 1 deletions

View File

@ -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)