Merge pull request #44 from CarlJi/0617

do not print host for goc agent by default
This commit is contained in:
qiniu-bot 2020-06-19 14:52:22 +08:00 committed by GitHub
commit 16fa2a5322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -9,12 +9,9 @@
goc is a comprehensive coverage testing system for The Go Programming Language, especially for some complex scenarioslike system testing code coverage collection and
accurate testing.
Enjoy, Have Fun!
![Demo](docs/images/intro.gif)
> **Note:**
>
> This readme and related documentation are Work in Progress.
## Installation
To install goc tool, you need to install Go first (**version 1.11+ is required**), then:
@ -59,5 +56,7 @@ Goc can collect code coverages at runtime for your long-run golang applications.
## Contributing
We welcome all kinds of contribution, including bug reports, feature requests, documentation improvements, UI refinements, etc.
Thanks to all [contributors](https://github.com/qiniu/goc/graphs/contributors)!!
## License
Goc is released under the Apache 2.0 license. See [LICENSE.txt](https://github.com/qiniu/goc/blob/master/LICENSE)

View File

@ -148,7 +148,6 @@ func registerHandlers() {
log.Fatalf("listen failed, err:%v", err)
}
fmt.Printf("[goc] goc agent listened on: %s \n", host)
profileAddr := "http://" + host
if resp, err := registerSelf(profileAddr); err != nil {
log.Fatalf("register address %v failed, err: %v, response: %v", profileAddr, err, string(resp))