From d9c56390d8c0f97753b808f190d9fc190b7541a0 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期一, 23 十二月 2019 10:56:18 +0800 Subject: [PATCH] update --- main.go | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/main.go b/main.go index 777cf7c..e62501b 100644 --- a/main.go +++ b/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") // 鎸囧畾鑾峰彇閰嶇疆淇℃伅浠巗qlite,鏈夋渶楂樹紭鍏堢骇, 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() { -- Gitblit v1.8.0