From 86afedca82bc530359dceea7f25f98c511851ce9 Mon Sep 17 00:00:00 2001 From: hwchiu Date: Thu, 21 Jun 2018 10:20:29 +0800 Subject: [PATCH] Fix the flag prase problem and remove unused logs --- config/local.json | 2 +- src/cmd/vortex/main.go | 2 ++ src/server/app.go | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/local.json b/config/local.json index 3d0d1a4d..3cd2bcf9 100644 --- a/config/local.json +++ b/config/local.json @@ -7,7 +7,7 @@ } }, "mongo": { - "url": "mongodb://localhost:31717/vortex_test" + "url": "mongodb://localhost:27017/vortex_test" }, "influxdb": { "url": "http://localhost:8086", diff --git a/src/cmd/vortex/main.go b/src/cmd/vortex/main.go index 940c1f0f..561e144a 100644 --- a/src/cmd/vortex/main.go +++ b/src/cmd/vortex/main.go @@ -17,6 +17,8 @@ func main() { flag.StringVar(&host, "host", "0.0.0.0", "hostname") flag.StringVar(&port, "port", "7890", "port") + flag.Parse() + a := server.App{} a.LoadConfig(configPath).Start(host, port) } diff --git a/src/server/app.go b/src/server/app.go index d70721a1..fb01b5eb 100644 --- a/src/server/app.go +++ b/src/server/app.go @@ -31,7 +31,6 @@ func (a *App) Start(host, port string) error { a.InitilizeService() bind := net.JoinHostPort(host, port) - logger.Debugf("Starting LISA on host: %s port: %s", host, port) return http.ListenAndServe(bind, a.AppRoute()) }