watcher: add sui logging

This commit is contained in:
Paul Noel 2023-07-13 15:59:11 +00:00 committed by Paul Noel
parent 0fdc03eb4d
commit 7423be52c1
1 changed files with 1 additions and 1 deletions

View File

@ -475,7 +475,7 @@ func (e *Watcher) Run(ctx context.Context) error {
var res SuiTxnQuery
err = json.Unmarshal(body, &res)
if err != nil {
logger.Error("failed to unmarshal event message", zap.Error(err))
logger.Error("failed to unmarshal event message", zap.String("body", string(body)), zap.Error(err))
p2p.DefaultRegistry.AddErrorCount(vaa.ChainIDSui, 1)
return fmt.Errorf("sui__fetch_obvs_req failed to unmarshal: %w", err)