Skip to content

Commit

Permalink
Downgrade batch cancel logs (#2703)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayy04 authored Jan 23, 2025
1 parent c73c6c4 commit afa37ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions protocol/lib/metrics/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const (
AddPerpetualFillAmount = "add_perpetual_fill_amount"
BaseQuantums = "base_quantums"
BatchCancel = "batch_cancel"
SingleCancelInBatchCancelFailed = "single_cancel_in_batch_cancel_failed"
BestAsk = "best_ask"
BestAskClobPair = "best_ask_clob_pair"
BestBid = "best_bid"
Expand Down
3 changes: 2 additions & 1 deletion protocol/x/clob/keeper/orders.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,12 @@ func (k Keeper) BatchCancelShortTermOrder(

if err != nil {
failure = append(failure, clientId)
log.InfoLog(
log.DebugLog(
ctx,
"Batch Cancel: Failed to cancel a short term order.",
log.Error, err,
)
telemetry.IncrCounter(1, types.ModuleName, metrics.SingleCancelInBatchCancelFailed)
} else {
success = append(success, clientId)
}
Expand Down

0 comments on commit afa37ec

Please sign in to comment.