Fixed incorrect logging.info() call in PollingLiquidator.

This commit is contained in:
Geoff Taylor 2021-05-21 14:25:02 +01:00
parent 85798a360b
commit 6058468a99
1 changed files with 8 additions and 8 deletions

View File

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "improving-calgary",
"id": "behavioral-thanksgiving",
"metadata": {},
"source": [
"# ⚠ Warning\n",
@ -16,7 +16,7 @@
},
{
"cell_type": "markdown",
"id": "sound-reservoir",
"id": "supreme-harvest",
"metadata": {},
"source": [
"# 🥭 PollingLiquidator\n",
@ -27,7 +27,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "expressed-allergy",
"id": "simplified-marking",
"metadata": {
"jupyter": {
"source_hidden": true
@ -50,7 +50,7 @@
},
{
"cell_type": "markdown",
"id": "prescription-lunch",
"id": "seeing-measurement",
"metadata": {},
"source": [
"# PollingLiquidator class\n",
@ -85,7 +85,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "forced-shock",
"id": "short-execution",
"metadata": {},
"outputs": [],
"source": [
@ -185,13 +185,13 @@
" time_taken = time.time() - started_at\n",
" should_sleep_for = self.throttle_to_seconds - int(time_taken)\n",
" sleep_for = max(should_sleep_for, 0)\n",
" logging.info(f\"Check of all ripe 🥭 accounts complete. Time taken: {time_taken:.2f} seconds, sleeping for {sleep_for} seconds...\")\n",
" self.logger.info(f\"Check of all ripe 🥭 accounts complete. Time taken: {time_taken:.2f} seconds, sleeping for {sleep_for} seconds...\")\n",
" time.sleep(sleep_for)\n"
]
},
{
"cell_type": "markdown",
"id": "olive-example",
"id": "arranged-times",
"metadata": {},
"source": [
"# 🏃 Running"
@ -200,7 +200,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "mechanical-function",
"id": "physical-zealand",
"metadata": {},
"outputs": [],
"source": [