Skip to content

Commit

Permalink
🚧 fix(wip): move info
Browse files Browse the repository at this point in the history
  • Loading branch information
mxchinegod committed Jul 8, 2024
1 parent 07c9c1d commit 9efa097
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions magnet/ic/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,8 @@ async def listen(self, cb=print, job_n: int = None, generic: bool = False, v=Fal
loop.create_task(cb(self.object_store, e))
_f("info",
f'consuming objects from [{self.magnet.config.os_name}] on\n🛰️ stream: {self.magnet.config.stream_name}\n🧲 session: "{self.magnet.config.session}"')
await asyncio.sleep(3600)
_f("info",
f'consuming delta from [{self.magnet.config.category}] on\n🛰️ stream: {self.magnet.config.stream_name}\n🧲 session: "{self.magnet.config.session}"')
await asyncio.sleep(1)

else:
while True:
try:
Expand All @@ -294,6 +293,8 @@ async def listen(self, cb=print, job_n: int = None, generic: bool = False, v=Fal
else:
_f('fatal', str(e))
await asyncio.sleep(1)
_f("info",
f'consuming delta from [{self.magnet.config.category}] on\n🛰️ stream: {self.magnet.config.stream_name}\n🧲 session: "{self.magnet.config.session}"')

async def worker(self, cb=print):
"""
Expand Down

0 comments on commit 9efa097

Please sign in to comment.