summaryrefslogtreecommitdiff
path: root/cmd/dserver/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dserver/main.go')
-rw-r--r--cmd/dserver/main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/dserver/main.go b/cmd/dserver/main.go
index 4ea3e2b..7c13b29 100644
--- a/cmd/dserver/main.go
+++ b/cmd/dserver/main.go
@@ -73,7 +73,9 @@ func main() {
if pprof != "" {
dlog.Client.Info("Starting PProf", pprof)
go func() {
- panic(http.ListenAndServe(pprof, nil))
+ if err := http.ListenAndServe(pprof, nil); err != nil {
+ dlog.Client.Error("PProf server exited", err)
+ }
}()
}