Skip to content

Commit

Permalink
feat(taiko-client): improve some logs in zk producer (#18117)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored and dantaik committed Sep 18, 2024
1 parent c9a3ac2 commit d7575bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/taiko-client/prover/proof_producer/sgx_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,12 @@ func (s *SGXProofProducer) requestProof(
return nil, err
}

log.Debug("Proof generation output", "output", string(resBytes))
log.Debug(
"Proof generation output",
"blockID", opts.BlockID,
"zkType", "sgx",
"output", string(resBytes),
)

var output RaikoRequestProofBodyResponse
if err := json.Unmarshal(resBytes, &output); err != nil {
Expand Down
7 changes: 6 additions & 1 deletion packages/taiko-client/prover/proof_producer/zkvm_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,12 @@ func (s *ZKvmProofProducer) requestProof(
return nil, err
}

log.Debug("Proof generation output", "output", string(resBytes))
log.Debug(
"Proof generation output",
"blockID", opts.BlockID,
"zkType", s.ZKProofType,
"output", string(resBytes),
)
var output RaikoRequestProofBodyResponseV2
if err := json.Unmarshal(resBytes, &output); err != nil {
return nil, err
Expand Down

0 comments on commit d7575bf

Please sign in to comment.