print endpoint in stdout

This commit is contained in:
Ulric Qin 2020-03-14 23:08:31 +08:00
parent ceaa9f58af
commit 0ba6c698d1
1 changed files with 3 additions and 2 deletions

View File

@ -63,6 +63,8 @@ func main() {
identity.Init(cfg.Identity)
if identity.Identity == "127.0.0.1" {
log.Fatalln("endpoint: 127.0.0.1, cannot work")
} else {
log.Println("endpoint:", identity.Identity)
}
sys.Init(cfg.Sys)
@ -137,6 +139,5 @@ func ending() {
func start() {
runner.Init()
fmt.Println("collector start, use configuration file:", *conf)
fmt.Println("runner.Cwd:", runner.Cwd)
fmt.Println("runner.Endpoint:", runner.Hostname)
fmt.Println("runner.cwd:", runner.Cwd)
}