Skip to content

Commit

Permalink
print endpoint in stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
UlricQin committed Mar 14, 2020
1 parent ceaa9f5 commit 0ba6c69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
}

0 comments on commit 0ba6c69

Please sign in to comment.