Skip to content

Commit 9eb4ad0

Browse files
author
Alan Christie
committed
feat: Add debug to get method
1 parent 658ea07 commit 9eb4ad0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ def get_es() -> EventStreamGetResponse:
239239
"""Returns a list of the details of all existing event-streams,
240240
their IDs, locations, and routing keys."""
241241

242+
_LOGGER.info("Request to get event streams...")
243+
242244
# Get the ES record (by primary key)
243245
db = sqlite3.connect(_DATABASE_PATH)
244246
cursor = db.cursor()
@@ -252,6 +254,8 @@ def get_es() -> EventStreamGetResponse:
252254
EventStreamItem(id=es[0], location=location, routing_key=es[2])
253255
)
254256

257+
_LOGGER.info("Returning %s event stream records", len(event_streams))
258+
255259
return EventStreamGetResponse(event_streams=event_streams)
256260

257261

0 commit comments

Comments
 (0)