From a55d527abeab11e6b5d2562fbc8f812fc15e9bf7 Mon Sep 17 00:00:00 2001 From: "Jieyi Long (THETA Network)" Date: Tue, 8 Oct 2024 00:43:27 +0800 Subject: [PATCH] Add debugging messages --- interchain/orchestrator/orchestrator.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interchain/orchestrator/orchestrator.go b/interchain/orchestrator/orchestrator.go index 9244c78..33c0e3b 100644 --- a/interchain/orchestrator/orchestrator.go +++ b/interchain/orchestrator/orchestrator.go @@ -332,6 +332,10 @@ func (oc *Orchestrator) processNextEvent(sourceChainID *big.Int, targetChainID * nextNonce := big.NewInt(0).Add(maxProcessedNonce, big.NewInt(1)) sourceEvent, err := oc.interChainEventCache.Get(sourceChainID, sourceChainEventType, nextNonce) + + logger.Debugf("Query next event, sourceChainID: %v, targetChainID: %v, sourceChainEventType: %v, nextNonce: %v, err: %v", + sourceChainID, targetChainID, sourceChainEventType, nextNonce, err) + if err == ts.ErrKeyNotFound { return // the next event (e.g. Token Lock, or Voucher Burn) has not occurred yet }