(self)
| 290 | logging.debug(msg) |
| 291 | |
| 292 | def debug_stacktrace(self): |
| 293 | exc = sys.exc_info()[0] |
| 294 | # the last one would be full_stack() |
| 295 | stack = traceback.extract_stack()[:-1] |
| 296 | if exc is not None: |
| 297 | del stack[-1] |
| 298 | trc = 'Traceback (most recent call last):\n' |
| 299 | msg = trc + ''.join(traceback.format_list(stack)) |
| 300 | if exc is not None: |
| 301 | msg += ' ' + traceback.format_exc().removeprefix(trc) |
| 302 | self.debug(msg) |
| 303 | |
| 304 | def __str__(self): |
| 305 | ret = f"GraphSync {self.uid}\n" |
no test coverage detected