logx conf add DisableStat (#2434)

Co-authored-by: sunsoft <sunsoft@qq.com>
This commit is contained in:
chainlife
2023-01-02 23:22:13 +08:00
committed by GitHub
parent dd294e8cd6
commit 20a61ce43e
2 changed files with 6 additions and 1 deletions

View File

@@ -229,7 +229,11 @@ func SetUp(c LogConf) (err error) {
// Need to wait for the first caller to complete the execution.
setupOnce.Do(func() {
setupLogLevel(c)
if (c.DisableStat){
DisableStat()
}
if len(c.TimeFormat) > 0 {
timeFormat = c.TimeFormat
}