From c1257a0ba298ebb866c33a82b7a75a69e206d449 Mon Sep 17 00:00:00 2001 From: colinlyguo Date: Tue, 15 Oct 2024 19:09:21 +0800 Subject: [PATCH] tweak logs --- coordinator/internal/logic/provertask/batch_prover_task.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coordinator/internal/logic/provertask/batch_prover_task.go b/coordinator/internal/logic/provertask/batch_prover_task.go index 8142d5fbb5..41b6713543 100644 --- a/coordinator/internal/logic/provertask/batch_prover_task.go +++ b/coordinator/internal/logic/provertask/batch_prover_task.go @@ -249,12 +249,12 @@ func (bp *BatchProverTask) getBatchTaskDetail(dbBatch *orm.Batch, chunkInfos []* codec, err := encoding.CodecFromVersion(encoding.CodecVersion(dbBatch.CodecVersion)) if err != nil { - return nil, fmt.Errorf("failed to get codec from version: %w", err) + return nil, fmt.Errorf("failed to get codec from version %d: %w", dbBatch.CodecVersion, err) } batchHeader, decodeErr := codec.NewDABatchFromBytes(dbBatch.BatchHeader) if decodeErr != nil { - return nil, fmt.Errorf("failed to decode batch header (v3) for batch %d: %w", dbBatch.Index, decodeErr) + return nil, fmt.Errorf("failed to decode batch header version %d: %w", dbBatch.CodecVersion, decodeErr) } taskDetail.BatchHeader = batchHeader taskDetail.BlobBytes = dbBatch.BlobBytes