Skip to content

Commit

Permalink
logging i broker base.
Browse files Browse the repository at this point in the history
  • Loading branch information
skpdelegate committed Dec 15, 2024
1 parent 80acc0d commit b9d2ce4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ def run(self):

except StopIteration:
time.sleep(1)
if not cursor.alive:
log.error(f"{self.broker_name} stop iterations was thrown and curser is not alive.")
cursor = self.col.find(
self.listener_match, cursor_type=CursorType.TAILABLE_AWAIT
)
else:
pass

Expand Down

0 comments on commit b9d2ce4

Please sign in to comment.