Skip to content

Commit

Permalink
fix: log fallback reason
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Dec 24, 2024
1 parent 78f4b93 commit f36ae43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/liquidate/SingularPartialLiquidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ export default class SingularPartialLiquidator extends SingularLiquidator<Partia
};
} catch (e) {
if (this.#fallback) {
logger.debug("previewing with fallback liquidator");
logger.warn(
`partial liquidation failed, falling back to full liquidation: ${e}`,
);
const result = await this.#fallback.preview(ca);
return {
...result,
Expand Down

0 comments on commit f36ae43

Please sign in to comment.