use stat instead of disableStat (#2740)
This commit is contained in:
@@ -229,11 +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 !c.Stat {
|
||||
DisableStat()
|
||||
}
|
||||
|
||||
|
||||
if len(c.TimeFormat) > 0 {
|
||||
timeFormat = c.TimeFormat
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user