Add debug logging to TicketInfo RPC. (#208)
This commit is contained in:
parent
1c6f962e2b
commit
4f8b3c79eb
@ -201,6 +201,9 @@ func (c *WalletRPC) TicketInfo(startHeight int64) (map[string]*wallettypes.Ticke
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Debugf("TicketInfo RPC returned %d tickets (wallet=%s, startHeight=%d)",
|
||||||
|
len(result), c.String(), startHeight)
|
||||||
|
|
||||||
// For easier access later on, store the tickets in a map using their hash
|
// For easier access later on, store the tickets in a map using their hash
|
||||||
// as the key.
|
// as the key.
|
||||||
tickets := make(map[string]*wallettypes.TicketInfoResult, len(result))
|
tickets := make(map[string]*wallettypes.TicketInfoResult, len(result))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user