Skip to content

Commit

Permalink
chore: log the error object
Browse files Browse the repository at this point in the history
  • Loading branch information
wjrjerome committed Jan 21, 2024
1 parent 786e379 commit 71c4425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XDCx/XDCx.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ func NewMongoDBEngine(cfg *Config) *XDCxDAO.MongoDatabase {
func New(cfg *Config) *XDCX {
tokenDecimalCache, err := lru.New(defaultCacheLimit)
if err != nil {
log.Warn("[XDCx-New] fail to create new lru for token decimal")
log.Warn("[XDCx-New] fail to create new lru for token decimal", "error", err)
}
orderCache, err := lru.New(tradingstate.OrderCacheLimit)
if err != nil {
log.Warn("[XDCx-New] fail to create new lru for order")
log.Warn("[XDCx-New] fail to create new lru for order", "error", err)
}
XDCX := &XDCX{
orderNonce: make(map[common.Address]*big.Int),
Expand Down

0 comments on commit 71c4425

Please sign in to comment.