mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
chore: log the error object
This commit is contained in:
parent
786e3793b0
commit
71c442547a
1 changed files with 2 additions and 2 deletions
|
|
@ -97,11 +97,11 @@ func NewMongoDBEngine(cfg *Config) *XDCxDAO.MongoDatabase {
|
||||||
func New(cfg *Config) *XDCX {
|
func New(cfg *Config) *XDCX {
|
||||||
tokenDecimalCache, err := lru.New(defaultCacheLimit)
|
tokenDecimalCache, err := lru.New(defaultCacheLimit)
|
||||||
if err != nil {
|
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)
|
orderCache, err := lru.New(tradingstate.OrderCacheLimit)
|
||||||
if err != nil {
|
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{
|
XDCX := &XDCX{
|
||||||
orderNonce: make(map[common.Address]*big.Int),
|
orderNonce: make(map[common.Address]*big.Int),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue