diff options
Diffstat (limited to 'cmd/dserver/main.go')
| -rw-r--r-- | cmd/dserver/main.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/dserver/main.go b/cmd/dserver/main.go index 14188e1..3377273 100644 --- a/cmd/dserver/main.go +++ b/cmd/dserver/main.go @@ -71,8 +71,10 @@ func main() { dlog.Start(ctx, &wg, source.Server) if pprof != "" { - dlog.Server.Info("Starting PProf", pprof) - go http.ListenAndServe(pprof, nil) + dlog.Client.Info("Starting PProf", pprof) + go func() { + panic(http.ListenAndServe(pprof, nil)) + }() } serv := server.New() |
