From 75f2b03cdff664e1a1a4e5231abdf44c6c06f8c5 Mon Sep 17 00:00:00 2001
From: Benjamin Wenger <ben@elixxir.ioo>
Date: Sat, 17 Aug 2019 16:47:15 -0700
Subject: [PATCH] small QOL changes

---
 api/client.go | 3 ++-
 cmd/root.go   | 6 ------
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/api/client.go b/api/client.go
index 1eeae0c5e..f97c1a027 100644
--- a/api/client.go
+++ b/api/client.go
@@ -269,12 +269,13 @@ func (cl *Client) Register(preCan bool, registrationCode, nick, email string) (*
 		receptionHash := sha256.New()
 
 		// Loop over all Servers
+		globals.Log.INFO.Println("Register: Requesting nonces")
 		for i := range cl.ndf.Gateways {
 
 			gwID := id.NewNodeFromBytes(cl.ndf.Nodes[i].ID).NewGateway()
 
 			// Request nonce message from gateway
-			globals.Log.INFO.Println("Register: Requesting nonce from gateway")
+			globals.Log.INFO.Printf("Register: Requesting nonce from gateway %v/%v", i, len(cl.ndf.Gateways))
 			nonce, dhPub, err := cl.requestNonce(salt, regHash, publicKeyDH, publicKeyRSA, privateKeyRSA, gwID)
 			if err != nil {
 				globals.Log.ERROR.Printf("Register: Failed requesting nonce from gateway: %+v", err)
diff --git a/cmd/root.go b/cmd/root.go
index fcc5b40d0..325bb8102 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -45,7 +45,6 @@ var rateLimiting uint32
 var showVer bool
 var gwCertPath string
 var registrationCertPath string
-var registrationAddr string
 var registrationCode string
 var userEmail string
 var userNick string
@@ -523,11 +522,6 @@ func init() {
 		"",
 		"Path to the certificate file for connecting to registration server"+
 			" using TLS")
-	rootCmd.PersistentFlags().StringVarP(&registrationAddr,
-		"registrationaddr", "a",
-		"",
-		"Address:Port for connecting to registration server"+
-			" using TLS")
 
 	rootCmd.PersistentFlags().StringVarP(&registrationCode,
 		"regcode", "e",
-- 
GitLab