Updated failed liquidation message to include liquidator name.

This commit is contained in:
Geoff Taylor 2021-06-22 10:25:06 +01:00
parent f7bd67308e
commit 72a64a322e
1 changed files with 2 additions and 1 deletions

View File

@ -148,7 +148,8 @@ class LiquidationProcessor:
f"Margin account {updated_margin_account.address} is still worthwhile - putting it back on list.")
to_process += [updated_report]
except Exception as exception:
self.logger.error(f"Failed to liquidate account '{highest.margin_account.address}' - {exception}")
self.logger.error(
f"Liquidator '{self.name}' - failed to liquidate account '{highest.margin_account.address}' - {exception}.")
finally:
# highest should always be in to_process, but we're outside the try-except block
# so let's be a little paranoid about it.