remove some logs

This commit is contained in:
0xdcarns 2022-01-28 18:41:25 -05:00
parent fb69d54f24
commit 2b5c5afeb4
2 changed files with 1 additions and 8 deletions

View file

@ -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 {

View file

@ -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)