From 7423be52c10996e3e8e7dcb639e07ae3935e17f2 Mon Sep 17 00:00:00 2001 From: Paul Noel Date: Thu, 13 Jul 2023 15:59:11 +0000 Subject: [PATCH] watcher: add sui logging --- node/pkg/watchers/sui/watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/pkg/watchers/sui/watcher.go b/node/pkg/watchers/sui/watcher.go index 25163cc97..c92dc9966 100644 --- a/node/pkg/watchers/sui/watcher.go +++ b/node/pkg/watchers/sui/watcher.go @@ -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)