提交 0ba6c698 编写于 作者: U Ulric Qin

print endpoint in stdout

上级 ceaa9f58
......@@ -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)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册