logger: refactor Tendermint logger by using zerolog (#6534)

This commit is contained in:
Aleksandr Bezobchuk
2021-06-07 08:30:48 -04:00
committed by GitHub
parent b28887e839
commit 3635c7a382
43 changed files with 316 additions and 1363 deletions
+2 -3
View File
@@ -46,9 +46,8 @@ func main() {
rootCA = flag.String("rootcafile", "", "absolute path to root CA")
prometheusAddr = flag.String("prometheus-addr", "", "address for prometheus endpoint (host:port)")
logger = log.NewTMLogger(
log.NewSyncWriter(os.Stdout),
).With("module", "priv_val")
logger = log.MustNewDefaultLogger(log.LogFormatPlain, log.LogLevelInfo, false).
With("module", "priv_val")
)
flag.Parse()