From eed4c4df9cadc7010880767b9f45c02ec5444288 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 17 Sep 2013 17:15:49 -0500 Subject: [PATCH] Add log message for profile server listen port. --- btcd.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/btcd.go b/btcd.go index 92715932..e04e67e0 100644 --- a/btcd.go +++ b/btcd.go @@ -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)) }() }