mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-13 13:21:20 +00:00
Config is passed into each module. Remove tendermint/confer
This commit is contained in:
14
logger/config.go
Normal file
14
logger/config.go
Normal file
@ -0,0 +1,14 @@
|
||||
package logger
|
||||
|
||||
import (
|
||||
cfg "github.com/tendermint/tendermint/config"
|
||||
)
|
||||
|
||||
var config cfg.Config = nil
|
||||
|
||||
func init() {
|
||||
cfg.OnConfig(func(newConfig cfg.Config) {
|
||||
config = newConfig
|
||||
Reset() // reset log root upon config change.
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user