Skip to content

Commit

Permalink
chore: replace info by debug loggings in perpetual
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond committed Apr 29, 2024
1 parent 829c426 commit e0d83ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/perpetual/keeper/begin_blocker_process_mtp.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func BeginBlockerProcessMTP(ctx sdk.Context, k Keeper, mtp *types.MTP, pool type
// flag position as must force close
mustForceClose = true
} else {
ctx.Logger().Info(errors.Wrap(types.ErrMTPHealthy, "skipping executing force close because mtp is healthy").Error())
ctx.Logger().Debug(errors.Wrap(types.ErrMTPHealthy, "skipping executing force close because mtp is healthy").Error())
}

entry, found := k.assetProfileKeeper.GetEntryByDenom(ctx, mtp.CustodyAsset)
Expand All @@ -84,7 +84,7 @@ func BeginBlockerProcessMTP(ctx sdk.Context, k Keeper, mtp *types.MTP, pool type
// flag position as must force close
mustForceClose = true
} else {
ctx.Logger().Info(fmt.Sprintf("skipping force close on position %s because take profit price %s <> %s", mtp.String(), mtp.TakeProfitPrice.String(), assetPrice.String()))
ctx.Logger().Debug(fmt.Sprintf("skipping force close on position %s because take profit price %s <> %s", mtp.String(), mtp.TakeProfitPrice.String(), assetPrice.String()))
}

// if flag is false, then skip force close
Expand Down

0 comments on commit e0d83ac

Please sign in to comment.