Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/scollector: enable pprof = "ip:port" settings in TOML file #1190

Merged
merged 1 commit into from
Jul 23, 2015

Conversation

gbrayut
Copy link
Contributor

@gbrayut gbrayut commented Jul 23, 2015

No description provided.

if conf.PProf != "" {
go func() {
slog.Infof("Starting pprof at http://%s/debug/pprof/", conf.PProf)
err := http.ListenAndServe(conf.PProf, nil)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slog.Fatal(http.ListenAndServe()) is how I most often see this. If it ever returns something bad happened.

@gbrayut
Copy link
Contributor Author

gbrayut commented Jul 23, 2015

Update with slog.Fatal(http.ListenAndServe())

captncraig added a commit that referenced this pull request Jul 23, 2015
cmd/scollector: enable pprof = "ip:port" settings in TOML file
@captncraig captncraig merged commit 39dd21a into master Jul 23, 2015
@captncraig captncraig deleted the scollector_pprof branch July 23, 2015 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants