diff options
Diffstat (limited to 'cmd/dcat/main.go')
| -rw-r--r-- | cmd/dcat/main.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/dcat/main.go b/cmd/dcat/main.go index 98da089..a50be51 100644 --- a/cmd/dcat/main.go +++ b/cmd/dcat/main.go @@ -59,8 +59,10 @@ func main() { dlog.Start(ctx, &wg, source.Client) 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.NewCatClient(args) |
