mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
15 lines
236 B
Go
15 lines
236 B
Go
|
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.
|
||
|
})
|
||
|
}
|