diff --git a/protocol/lib/metrics/constants.go b/protocol/lib/metrics/constants.go index 795856530f7..6f274bfa343 100644 --- a/protocol/lib/metrics/constants.go +++ b/protocol/lib/metrics/constants.go @@ -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" diff --git a/protocol/x/clob/keeper/orders.go b/protocol/x/clob/keeper/orders.go index eba66f9f697..96c7fc798cf 100644 --- a/protocol/x/clob/keeper/orders.go +++ b/protocol/x/clob/keeper/orders.go @@ -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) }