Skip to content

Commit cda36ad

Browse files
committed
🚧 fix(wip): smarter info in log for callback issues
1 parent 57ea299 commit cda36ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

magnet/ic/field.py

+1
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ async def listen(self, cb=print, job_n: int = None, generic: bool = False, verbo
281281
await cb(payload, msgs[0])
282282
except Exception as e:
283283
_f("warn", f'retrying connection to {self.server}\n{e}')
284+
_f("info", "this can also be a problem with your callback")
284285
except Exception as e:
285286
_f('fatal', f'invalid JSON\n{e}')
286287
break

0 commit comments

Comments
 (0)