mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 23:36:18 +08:00
remove some logs
This commit is contained in:
parent
fb69d54f24
commit
2b5c5afeb4
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue