Skip to content

Commit e700baf

Browse files
author
Nathan Rockhold
committed
added tests
1 parent bb755d4 commit e700baf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pprof/pprof.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
package pprof
22

33
import (
4-
"log"
54
"net/http"
65
"net/http/pprof"
6+
7+
log "github.com/sirupsen/logrus"
78
)
89

910
var ListenAddress = "localhost:6060"
1011

11-
// This init is needed to disable the default handlers registered by importing net/http/pprof
12+
// This init is needed to disable the default handlers registered during the init() from importing net/http/pprof
1213
func init() {
1314
http.DefaultServeMux = http.NewServeMux()
1415
}
@@ -45,7 +46,7 @@ func ListenAndServe(addr string) error {
4546
// Run a standard pprof server at ListenAddress
4647
func Run() {
4748
go func() {
48-
log.Printf("Running pprof server at: %s", ListenAddress)
49+
log.Infof("Running pprof server at: %s", ListenAddress)
4950
log.Fatal(ListenAndServe(ListenAddress))
5051
}()
5152
}

0 commit comments

Comments
 (0)