summaryrefslogtreecommitdiff
path: root/cmd/dserver
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2024-02-23 15:01:41 +0200
committerPaul Buetow <pbuetow@mimecast.com>2024-02-23 15:01:41 +0200
commita3e10757a52fa47a0608afd88986162ca5eb22cc (patch)
treedce61c6695bc3badd455a64767252e6947b32711 /cmd/dserver
parent85780654df870dc4170b93a8ed5a5dbfa917fe5d (diff)
lint warnings
Diffstat (limited to 'cmd/dserver')
-rw-r--r--cmd/dserver/main.go6
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()