Skip to content

Commit

Permalink
feat(orderbook): log error message on remove order (#1901)
Browse files Browse the repository at this point in the history
  • Loading branch information
sangaman authored Sep 15, 2020
1 parent 1f5e380 commit 788490f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/orderbook/OrderBook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1107,8 +1107,8 @@ class OrderBook extends EventEmitter {
try {
const removeResult = this.removePeerOrder(oi.id, oi.pairId, peerPubKey, oi.quantity);
this.emit('peerOrder.invalidation', removeResult.order);
} catch {
this.logger.error(`failed to remove order (${oi.id}) of peer ${peerPubKey} (${pubKeyToAlias(peerPubKey)})`);
} catch (err) {
this.logger.error(`failed to remove order (${oi.id}) of peer ${peerPubKey} (${pubKeyToAlias(peerPubKey)})`, err);
// TODO: Penalize peer
}
}
Expand Down

0 comments on commit 788490f

Please sign in to comment.