From 5e5ade64fc5635a1ae48d4c22f69ca7efe2d9fb1 Mon Sep 17 00:00:00 2001 From: doomsower <12031673+doomsower@users.noreply.github.com> Date: Mon, 18 Dec 2023 18:33:22 -0300 Subject: [PATCH] fix: better log status --- src/services/liquidate/AbstractLiquidatorService.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/services/liquidate/AbstractLiquidatorService.ts b/src/services/liquidate/AbstractLiquidatorService.ts index 7d06c78..de3d613 100644 --- a/src/services/liquidate/AbstractLiquidatorService.ts +++ b/src/services/liquidate/AbstractLiquidatorService.ts @@ -175,10 +175,11 @@ export default abstract class AbstractLiquidatorService { this.provider as ethers.providers.JsonRpcProvider, tx, ); + const strStatus = receipt.status === 1 ? "success" : "failure"; this.log.debug( - `Liquidation tx receipt: status=${ + `Liquidation tx receipt: status=${strStatus} (${ receipt.status - }, gas=${receipt.cumulativeGasUsed.toString()}`, + }), gas=${receipt.cumulativeGasUsed.toString()}`, ); let balanceAfter = await this.getExecutorBalance(ca);