Skip to content

Commit 6c2406c

Browse files
author
Alan Christie
committed
feat: Better delete logging
1 parent 71322e9 commit 6c2406c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def get_es() -> EventStreamGetResponse:
259259
def delete_es(es_id: int):
260260
"""Destroys an existing event-stream."""
261261

262-
_LOGGER.info("Deleting event stream %s...", es_id)
262+
_LOGGER.info("Request to delete event stream %s...", es_id)
263263

264264
# Get the ES record (by primary key)
265265
db = sqlite3.connect(_DATABASE_PATH)
@@ -272,6 +272,10 @@ def delete_es(es_id: int):
272272
detail=f"EventStream {es_id} is not known",
273273
)
274274

275+
_LOGGER.info(
276+
"Deleting event stream %s (uuid=%s routing_key=%s)", es_id, es[1], es[2]
277+
)
278+
275279
# Delete the ES record...
276280
db = sqlite3.connect(_DATABASE_PATH)
277281
cursor = db.cursor()

0 commit comments

Comments
 (0)