diff --git a/src/modules/collector/collector.go b/src/modules/collector/collector.go index 4c8456d62..c061788dc 100644 --- a/src/modules/collector/collector.go +++ b/src/modules/collector/collector.go @@ -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) }