File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
package pprof
2
2
3
3
import (
4
- "log"
5
4
"net/http"
6
5
"net/http/pprof"
6
+
7
+ log "github.com/sirupsen/logrus"
7
8
)
8
9
9
10
var ListenAddress = "localhost:6060"
10
11
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
12
13
func init () {
13
14
http .DefaultServeMux = http .NewServeMux ()
14
15
}
@@ -45,7 +46,7 @@ func ListenAndServe(addr string) error {
45
46
// Run a standard pprof server at ListenAddress
46
47
func Run () {
47
48
go func () {
48
- log .Printf ("Running pprof server at: %s" , ListenAddress )
49
+ log .Infof ("Running pprof server at: %s" , ListenAddress )
49
50
log .Fatal (ListenAndServe (ListenAddress ))
50
51
}()
51
52
}
You can’t perform that action at this time.
0 commit comments