ing
This commit is contained in:
parent
6f38baf3ae
commit
ebee7e2d27
6
main.go
6
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)
|
||||
}
|
||||
os.Exit(1)
|
||||
}()
|
||||
}
|
||||
|
||||
interrupt := make(chan os.Signal, 1)
|
||||
signal.Notify(interrupt,
|
||||
|
|
Loading…
Reference in New Issue
Block a user