Skip to content

Commit 3bf45ef

Browse files
committed
fix: fixed logging statement
1 parent 2cb0a3f commit 3bf45ef

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/platforms/implementations/openeo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def _map_openeo_status(self, status: str) -> ProcessingStatusEnum:
171171
:return: ProcessingStatusEnum corresponding to the input.
172172
"""
173173

174-
logger.debug("Mapping openEO status %r to ProcessingStatusEnum", status)
174+
logger.debug(f"Mapping openEO status {status} to ProcessingStatusEnum")
175175

176176
mapping = {
177177
"created": ProcessingStatusEnum.CREATED,

guides/upscaling_example.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,14 @@
254254
},
255255
{
256256
"cell_type": "code",
257-
"execution_count": 15,
257+
"execution_count": 18,
258258
"id": "ac428293-7cd4-49a8-9bfa-4e0dc8f4d2cc",
259259
"metadata": {},
260260
"outputs": [
261261
{
262262
"data": {
263263
"application/vnd.jupyter.widget-view+json": {
264-
"model_id": "f0d8f8563e634a3c84d505e45a0ba654",
264+
"model_id": "8c57dbf49c574581aa8b4efe312479e2",
265265
"version_major": 2,
266266
"version_minor": 0
267267
},
@@ -283,8 +283,8 @@
283283
"\u001b[0;31mConnectionResetError\u001b[0m: [Errno 54] Connection reset by peer",
284284
"\nThe above exception was the direct cause of the following exception:\n",
285285
"\u001b[0;31mConnectionClosedError\u001b[0m Traceback (most recent call last)",
286-
"Cell \u001b[0;32mIn[15], line 73\u001b[0m\n\u001b[1;32m 70\u001b[0m \u001b[38;5;28;01mbreak\u001b[39;00m\n\u001b[1;32m 72\u001b[0m \u001b[38;5;66;03m# Run the websocket listener in the notebook\u001b[39;00m\n\u001b[0;32m---> 73\u001b[0m \u001b[38;5;28;01mawait\u001b[39;00m listen_for_updates()\n",
287-
"Cell \u001b[0;32mIn[15], line 42\u001b[0m, in \u001b[0;36mlisten_for_updates\u001b[0;34m()\u001b[0m\n\u001b[1;32m 40\u001b[0m \u001b[38;5;28;01masync\u001b[39;00m \u001b[38;5;28;01mwith\u001b[39;00m websockets\u001b[38;5;241m.\u001b[39mconnect(ws_url) \u001b[38;5;28;01mas\u001b[39;00m websocket:\n\u001b[1;32m 41\u001b[0m \u001b[38;5;28;01mwhile\u001b[39;00m \u001b[38;5;28;01mTrue\u001b[39;00m:\n\u001b[0;32m---> 42\u001b[0m message \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mawait\u001b[39;00m websocket\u001b[38;5;241m.\u001b[39mrecv()\n\u001b[1;32m 43\u001b[0m message \u001b[38;5;241m=\u001b[39m json\u001b[38;5;241m.\u001b[39mloads(message)\n\u001b[1;32m 44\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m message\u001b[38;5;241m.\u001b[39mget(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mdata\u001b[39m\u001b[38;5;124m\"\u001b[39m):\n",
286+
"Cell \u001b[0;32mIn[18], line 73\u001b[0m\n\u001b[1;32m 70\u001b[0m \u001b[38;5;28;01mbreak\u001b[39;00m\n\u001b[1;32m 72\u001b[0m \u001b[38;5;66;03m# Run the websocket listener in the notebook\u001b[39;00m\n\u001b[0;32m---> 73\u001b[0m \u001b[38;5;28;01mawait\u001b[39;00m listen_for_updates()\n",
287+
"Cell \u001b[0;32mIn[18], line 42\u001b[0m, in \u001b[0;36mlisten_for_updates\u001b[0;34m()\u001b[0m\n\u001b[1;32m 40\u001b[0m \u001b[38;5;28;01masync\u001b[39;00m \u001b[38;5;28;01mwith\u001b[39;00m websockets\u001b[38;5;241m.\u001b[39mconnect(ws_url) \u001b[38;5;28;01mas\u001b[39;00m websocket:\n\u001b[1;32m 41\u001b[0m \u001b[38;5;28;01mwhile\u001b[39;00m \u001b[38;5;28;01mTrue\u001b[39;00m:\n\u001b[0;32m---> 42\u001b[0m message \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mawait\u001b[39;00m websocket\u001b[38;5;241m.\u001b[39mrecv()\n\u001b[1;32m 43\u001b[0m message \u001b[38;5;241m=\u001b[39m json\u001b[38;5;241m.\u001b[39mloads(message)\n\u001b[1;32m 44\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m message\u001b[38;5;241m.\u001b[39mget(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mdata\u001b[39m\u001b[38;5;124m\"\u001b[39m):\n",
288288
"File \u001b[0;32m~/.pyenv/versions/3.10.12/lib/python3.10/site-packages/websockets/asyncio/connection.py:322\u001b[0m, in \u001b[0;36mConnection.recv\u001b[0;34m(self, decode)\u001b[0m\n\u001b[1;32m 318\u001b[0m \u001b[38;5;66;03m# fallthrough\u001b[39;00m\n\u001b[1;32m 319\u001b[0m \n\u001b[1;32m 320\u001b[0m \u001b[38;5;66;03m# Wait for the protocol state to be CLOSED before accessing close_exc.\u001b[39;00m\n\u001b[1;32m 321\u001b[0m \u001b[38;5;28;01mawait\u001b[39;00m asyncio\u001b[38;5;241m.\u001b[39mshield(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mconnection_lost_waiter)\n\u001b[0;32m--> 322\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mprotocol\u001b[38;5;241m.\u001b[39mclose_exc \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;21;01mself\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mrecv_exc\u001b[39;00m\n",
289289
"\u001b[0;31mConnectionClosedError\u001b[0m: received 1012 (service restart); then sent 1012 (service restart)"
290290
]

0 commit comments

Comments
 (0)