From 087d9c22d393d7b83972707bebfeea90219aeeab Mon Sep 17 00:00:00 2001 From: crusader Date: Sun, 3 Dec 2017 14:50:23 +0900 Subject: [PATCH] ing --- main.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index 9ffc649..9fb79f6 100644 --- a/main.go +++ b/main.go @@ -17,6 +17,7 @@ import ( "git.loafle.net/overflow/overflow_probes/auth" "git.loafle.net/overflow/overflow_probes/commons" "git.loafle.net/overflow/overflow_probes/config" + "git.loafle.net/overflow/overflow_probes/probe" ) /* @@ -79,14 +80,11 @@ func main() { os.Exit(1) } } - // if instance, err = probe.New(); nil != err { - // logging.Logger().Error(fmt.Sprintf("Probe error: %v", err)) - // return - // } - // if err := instance.(commons.Starter).Start(); err != nil { - // logging.Logger().Error(fmt.Sprintf("Probe error: %v", err)) - // return - // } + instance = probe.New() + if err := instance.(commons.Starter).Start(); err != nil { + logging.Logger().Error(err.Error()) + os.Exit(1) + } }()