Commit c10dc2cd authored by vicotor's avatar vicotor

add log

parent 49caf688
package server package server
import ( import (
"encoding/hex"
"errors" "errors"
"github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/crypto"
"github.com/odysseus/nodemanager/utils" "github.com/odysseus/nodemanager/utils"
...@@ -191,7 +192,9 @@ func (wm *WorkerManager) standardTaskResult(worker *Worker, task *odysseus.TaskC ...@@ -191,7 +192,9 @@ func (wm *WorkerManager) standardTaskResult(worker *Worker, task *odysseus.TaskC
log.WithFields(log.Fields{ log.WithFields(log.Fields{
"containerSignatureVerify": verified, "containerSignatureVerify": verified,
"taskkind": task.TaskKind, "taskkind": task.TaskKind,
"containerPubkey": string(task.ContainerPubkey), "dataHash": hex.EncodeToString(dataHash[:]),
"containerPubkey": hex.EncodeToString(task.ContainerPubkey),
"signature": hex.EncodeToString(signature),
}).Debug("container signature verify") }).Debug("container signature verify")
if !verified { if !verified {
// todo: handle signature verify failed // todo: handle signature verify failed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment