🔧 默认定时打印运行报告

This commit is contained in:
Liang Ding 2019-05-17 12:37:10 +08:00
parent 7d7e51e8a6
commit 58de20eb86
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
1 changed files with 1 additions and 5 deletions

View File

@ -51,7 +51,6 @@ func init() {
confData := flag.String("data", "", "path of data dir")
confServer := flag.String("server", "", "this will overwrite Wide.Server if specified")
confLogLevel := flag.String("log_level", "", "this will overwrite Wide.LogLevel if specified")
confStat := flag.Bool("stat", false, "whether report statistics periodically")
flag.Parse()
@ -72,10 +71,7 @@ func init() {
conf.FixedTimeCheckEnv()
session.FixedTimeSave()
session.FixedTimeRelease()
if *confStat {
session.FixedTimeReport()
}
session.FixedTimeReport()
logger.Debug("host ["+runtime.Version()+", "+runtime.GOOS+"_"+runtime.GOARCH+"], cross-compilation ", util.Go.GetCrossPlatforms())
}