Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhiran committed Jan 7, 2025
1 parent 7bd6d09 commit 2436326
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions task/processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ func (r *processor) process(taskID common.Hash) error {
crypto.PubkeyToAddress(*pubkey),
proof,
)
slog.Error("router call data", "projectID", t.ProjectID.String(), "taskID", t.ID.String(), "prover", r.account.String(), "deviceId", crypto.PubkeyToAddress(*pubkey).String(), "data", hexutil.Encode(proof))
slog.Error("proof valuses", "param1", hexutil.Encode(proof[0:32*8]),
"param2", hexutil.Encode(proof[32*8:32*10]),
"param3", hexutil.Encode(proof[32*10:32*12]),
"param4", hexutil.Encode(proof[32*12:32*78]),
)
if err != nil {
slog.Error("router call data", "projectID", t.ProjectID.String(), "taskID", t.ID.String(), "prover", r.account.String(), "deviceId", crypto.PubkeyToAddress(*pubkey).String(), "data", hexutil.Encode(proof))
slog.Error("proof valuses", "param1", hexutil.Encode(proof[0:32*8]),
"param2", hexutil.Encode(proof[32*8:32*10]),
"param3", hexutil.Encode(proof[32*10:32*12]),
"param4", hexutil.Encode(proof[32*12:32*79]),
)
if jsonErr, ok := err.(rpc.DataError); ok {
errData := jsonErr.ErrorData()
errMsg := jsonErr.Error()
Expand Down

0 comments on commit 2436326

Please sign in to comment.