Add log message for profile server listen port.

This commit is contained in:
Dave Collins 2013-09-17 17:15:49 -05:00
parent fc0cd75046
commit eed4c4df9c

View file

@ -113,8 +113,9 @@ func btcdMain() error {
// See if we want to enable profiling.
if cfg.Profile != "" {
go func() {
log.Errorf("%v", http.ListenAndServe(
net.JoinHostPort("", cfg.Profile), nil))
listenAddr := net.JoinHostPort("", cfg.Profile)
log.Infof("[BTCD] Profile server listening on %s", listenAddr)
log.Errorf("%v", http.ListenAndServe(listenAddr, nil))
}()
}