Browse Source

remove some logs

0xdcarns 3 years ago
parent
commit
2b5c5afeb4
2 changed files with 1 additions and 8 deletions
  1. 1 5
      controllers/node_grpc.go
  2. 0 3
      database/database.go

+ 1 - 5
controllers/node_grpc.go

@@ -4,7 +4,6 @@ import (
 	"context"
 	"encoding/json"
 	"errors"
-	"fmt"
 	"strings"
 
 	nodepb "github.com/gravitl/netmaker/grpc"
@@ -84,19 +83,16 @@ func (s *NodeServiceServer) CreateNode(ctx context.Context, req *nodepb.Object)
 		return nil, keyErr
 	}
 
-	fmt.Printf("appending key to node: %v \n", key.PublicKey)
-
 	node.TrafficKeys = models.TrafficKeys{
 		Mine:   node.TrafficKeys.Mine,
 		Server: key.PublicKey,
 	}
 
-	fmt.Printf("finished created node: %v \n", node)
-
 	err = logic.CreateNode(&node)
 	if err != nil {
 		return nil, err
 	}
+	logger.Log(0, "made it to here")
 
 	nodeData, errN := json.Marshal(&node)
 	if errN != nil {

+ 0 - 3
database/database.go

@@ -5,7 +5,6 @@ import (
 	"crypto/rsa"
 	"encoding/json"
 	"errors"
-	"fmt"
 	"time"
 
 	"github.com/google/uuid"
@@ -210,10 +209,8 @@ func initializeUUID() error {
 	if keyErr != nil {
 		return keyErr
 	}
-	fmt.Printf("created key %v \n", rsaPrivKey)
 
 	data, _ := json.Marshal(rsaPrivKey)
-	fmt.Printf("priv key data: %s \n", string(data))
 
 	telemetry := models.Telemetry{UUID: uuid.NewString(), TrafficKey: string(data)}
 	telJSON, err := json.Marshal(&telemetry)