From d720b5eed2ce2e9a230b2bcde7b26d868fe91380 Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 1 Dec 2017 22:20:01 +0900 Subject: [PATCH] ing --- auth/auth.go | 2 +- config.json | 3 --- main.go | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/auth/auth.go b/auth/auth.go index 3f43e8c..b00e4a4 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -99,7 +99,7 @@ func (a *auth) Stop() { func (a *auth) destroy(err error) { if a.stopChan == nil { - logging.Logger().Panic("Auth: auth must be started before stopping it") + logging.Logger().Warn("Auth: auth must be started before stopping it") } close(a.stopChan) a.stopWg.Wait() diff --git a/config.json b/config.json index 35c3cc6..e3ae483 100644 --- a/config.json +++ b/config.json @@ -4,8 +4,5 @@ "apiKey": "52abd6fd57e511e7ac52080027658d13", "readBufferSize": 8192, "writeBufferSize": 8192 - }, - "probe": { - "key": "52abd6fd57e511e7ac52080027658d13" } } \ No newline at end of file diff --git a/main.go b/main.go index b0e8be2..9ffc649 100644 --- a/main.go +++ b/main.go @@ -71,12 +71,12 @@ func main() { if err := instance.(commons.EndableStarter).EndableStart(authDoneChan); err != nil { logging.Logger().Error(err.Error()) - return + os.Exit(1) } err = <-authDoneChan if nil != err { logging.Logger().Error(err.Error()) - return + os.Exit(1) } } // if instance, err = probe.New(); nil != err {