configurable for load and stat statistics logs (#980)

This commit is contained in:
Kevin Wan
2021-08-31 17:14:31 +08:00
committed by GitHub
parent 4bee60eb7f
commit db95b3f0e3
5 changed files with 62 additions and 12 deletions

View File

@@ -38,7 +38,9 @@ func init() {
atomic.StoreInt64(&cpuUsage, usage)
})
case <-allTicker.C:
printUsage()
if logEnabled.True() {
printUsage()
}
}
}
}()