summaryrefslogtreecommitdiff
path: root/cmd/dgrep
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dgrep')
-rw-r--r--cmd/dgrep/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/dgrep/main.go b/cmd/dgrep/main.go
index 7c3cc3e..19f818b 100644
--- a/cmd/dgrep/main.go
+++ b/cmd/dgrep/main.go
@@ -69,8 +69,10 @@ func main() {
}
if pprof != "" {
- go http.ListenAndServe(pprof, nil)
- dlog.Client.Info("Started PProf", pprof)
+ dlog.Client.Info("Starting PProf", pprof)
+ go func() {
+ panic(http.ListenAndServe(pprof, nil))
+ }()
}
client, err := clients.NewGrepClient(args)