zhangmeng
2019-12-23 d9c56390d8c0f97753b808f190d9fc190b7541a0
main.go
@@ -28,6 +28,8 @@
   ruleIPC string
   configPath string
   showConsole bool
)
const (
@@ -46,6 +48,8 @@
   flag.BoolVar(&shm, util.SHM, false, "use shm for performance")
   flag.IntVar(&gpu, util.GPU, -1, "gpu index")
   flag.BoolVar(&showConsole, "log-console", false, "log show console, only for debug")
   // 指定获取配置信息从sqlite,有最高优先级, master使用
   flag.StringVar(&util.FSI.IP, util.FetchSrvIP, util.FSI.IP, "fetch server ip, like camera info")
@@ -66,7 +70,9 @@
      logo.Config(file, 500, 3, 30)
      logo.Infoln("START LOGGER FILE: ", file)
   }
   logo.ShowConsole()
   if showConsole {
      logo.ShowConsole()
   }
}
func setParamters() {