mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-10-14 00:59:33 +00:00
Add log message for profile server listen port.
This commit is contained in:
parent
fc0cd75046
commit
eed4c4df9c
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…
x
Reference in New Issue
Block a user