Skip to content

Commit

Permalink
Improved logs and descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszslabon committed Jun 10, 2024
1 parent c0d6f92 commit a9ce97a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/tbtc/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions pkg/tbtc/tbtc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand All @@ -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,
)
Expand Down

0 comments on commit a9ce97a

Please sign in to comment.