diff --git a/main.go b/main.go index 494f30e..75a4fe7 100644 --- a/main.go +++ b/main.go @@ -19,7 +19,7 @@ var ( ) func init() { - portNumber = flag.Int(occp.FlagProbePortName, 0, "Port number of Probe") + portNumber = flag.Int(occp.FlagProbePortName, 60000, "Port number of Probe") loggingConfigFilePath := flag.String(occp.FlagLoggingConfigFilePathName, "", "logging config path") flag.Parse() @@ -31,13 +31,11 @@ func main() { c := client.New(*portNumber) - go func() { - err := c.Start() - if nil != err { - log.Printf("err: %v", err) - } + err := c.Start() + if nil != err { + log.Printf("err: %v", err) os.Exit(1) - }() + } interrupt := make(chan os.Signal, 1) signal.Notify(interrupt,