print endpoint in stdout
This commit is contained in:
parent
ceaa9f58af
commit
0ba6c698d1
|
@ -63,6 +63,8 @@ func main() {
|
||||||
identity.Init(cfg.Identity)
|
identity.Init(cfg.Identity)
|
||||||
if identity.Identity == "127.0.0.1" {
|
if identity.Identity == "127.0.0.1" {
|
||||||
log.Fatalln("endpoint: 127.0.0.1, cannot work")
|
log.Fatalln("endpoint: 127.0.0.1, cannot work")
|
||||||
|
} else {
|
||||||
|
log.Println("endpoint:", identity.Identity)
|
||||||
}
|
}
|
||||||
|
|
||||||
sys.Init(cfg.Sys)
|
sys.Init(cfg.Sys)
|
||||||
|
@ -137,6 +139,5 @@ func ending() {
|
||||||
func start() {
|
func start() {
|
||||||
runner.Init()
|
runner.Init()
|
||||||
fmt.Println("collector start, use configuration file:", *conf)
|
fmt.Println("collector start, use configuration file:", *conf)
|
||||||
fmt.Println("runner.Cwd:", runner.Cwd)
|
fmt.Println("runner.cwd:", runner.Cwd)
|
||||||
fmt.Println("runner.Endpoint:", runner.Hostname)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue