ing
This commit is contained in:
parent
6f38baf3ae
commit
ebee7e2d27
12
main.go
12
main.go
|
@ -19,7 +19,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
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")
|
loggingConfigFilePath := flag.String(occp.FlagLoggingConfigFilePathName, "", "logging config path")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
@ -31,13 +31,11 @@ func main() {
|
||||||
|
|
||||||
c := client.New(*portNumber)
|
c := client.New(*portNumber)
|
||||||
|
|
||||||
go func() {
|
err := c.Start()
|
||||||
err := c.Start()
|
if nil != err {
|
||||||
if nil != err {
|
log.Printf("err: %v", err)
|
||||||
log.Printf("err: %v", err)
|
|
||||||
}
|
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}()
|
}
|
||||||
|
|
||||||
interrupt := make(chan os.Signal, 1)
|
interrupt := make(chan os.Signal, 1)
|
||||||
signal.Notify(interrupt,
|
signal.Notify(interrupt,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user