Skip to content

Commit

Permalink
Merge pull request #35 from Comcast/feature/enable_pprof
Browse files Browse the repository at this point in the history
Added the anonymous import to pull in pprof
  • Loading branch information
schmidtw authored Aug 4, 2017
2 parents cf280ed + 9e65fd9 commit f863d2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/caduceus/caduceus.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"crypto/tls"
"fmt"
"net/http"
_ "net/http/pprof"
"net/url"
"os"
"os/signal"
Expand Down Expand Up @@ -209,9 +210,9 @@ func caduceus(arguments []string) int {
// make sure dns is ready before preceeding
dnsReadyChan := make(chan bool, 1)
go caduceusHealth.dnsReady(selfURL.String(), dnsReadyChan)
<- dnsReadyChan
<-dnsReadyChan
logger.Debug("DNS ready")

webhookFactory.PrepareAndStart()

logger.Info("Caduceus is up and running!")
Expand Down

0 comments on commit f863d2f

Please sign in to comment.