Add log message for profile server listen port.
This commit is contained in:
parent
fc0cd75046
commit
eed4c4df9c
1 changed files with 3 additions and 2 deletions
5
btcd.go
5
btcd.go
|
@ -113,8 +113,9 @@ func btcdMain() error {
|
||||||
// See if we want to enable profiling.
|
// See if we want to enable profiling.
|
||||||
if cfg.Profile != "" {
|
if cfg.Profile != "" {
|
||||||
go func() {
|
go func() {
|
||||||
log.Errorf("%v", http.ListenAndServe(
|
listenAddr := net.JoinHostPort("", cfg.Profile)
|
||||||
net.JoinHostPort("", cfg.Profile), nil))
|
log.Infof("[BTCD] Profile server listening on %s", listenAddr)
|
||||||
|
log.Errorf("%v", http.ListenAndServe(listenAddr, nil))
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue