From a9ce97a123f4947e0bcaafa2f2d1122eb395f220 Mon Sep 17 00:00:00 2001 From: Tomasz Slabon Date: Mon, 10 Jun 2024 10:42:22 +0200 Subject: [PATCH] Improved logs and descriptions --- pkg/tbtc/chain.go | 4 ++-- pkg/tbtc/tbtc.go | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/tbtc/chain.go b/pkg/tbtc/chain.go index d8bfec302e..ad030b5bae 100644 --- a/pkg/tbtc/chain.go +++ b/pkg/tbtc/chain.go @@ -235,8 +235,8 @@ type DKGParameters struct { ApprovePrecedencePeriodBlocks uint64 } -// WalletClosedEvent represents a wallet closed. It is emitted when the wallet -// is closed in the wallet registry. +// WalletClosedEvent represents a wallet closed event. It is emitted when the +// wallet is closed in the wallet registry. type WalletClosedEvent struct { WalletID [32]byte BlockNumber uint64 diff --git a/pkg/tbtc/tbtc.go b/pkg/tbtc/tbtc.go index a341bf24f0..ab0939d6f7 100644 --- a/pkg/tbtc/tbtc.go +++ b/pkg/tbtc/tbtc.go @@ -279,7 +279,8 @@ func Initialize( } logger.Infof( - "Wallet with ID [0x%x] has been closed at block [%v]", + "Wallet with ID [0x%x] has been closed at block [%v]; "+ + "proceeding with handling wallet closure", event.WalletID, event.BlockNumber, ) @@ -289,7 +290,7 @@ func Initialize( ) if err != nil { logger.Errorf( - "Failure while handling wallet with ID [0x%x]: [%v]", + "Failure while handling wallet closure with ID [0x%x]: [%v]", event.WalletID, err, )